コード例 #1
0
 public int GetResourceAmount(ResourceTypeSO resourceType)
 {
     return(m_resourceAmountDictionary[resourceType]);
 }
コード例 #2
0
 public void AddResource(ResourceTypeSO resourceType, int amount)
 {
     m_resourceAmountDictionary[resourceType] += amount;
     OnResourceAmountChanged?.Invoke(this, EventArgs.Empty);
 }