mirror of
https://github.com/DerTyp7/fps-citybuild-unity.git
synced 2025-10-31 21:27:06 +01:00
Update ResourceManager
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user