Update ResourceManager

This commit is contained in:
DerTyp187
2021-09-28 13:39:01 +02:00
parent e67e603fe7
commit d0d5b76669
3 changed files with 40 additions and 0 deletions

View File

@@ -16,4 +16,18 @@ public class ResourceManager: MonoBehaviour
itemList.Add(item);
}
public int Count(Item item)
{
int count = 0;
foreach(Item i in itemList)
{
if(i == item)
{
count += 1;
}
}
return count;
}
}