Example #1
0
 public void Deposit(ResourceType resourceType, int amount)
 {
     if (resourceType == ResourceType.Data)
     {
         hudData.AddToCount(amount);
     }
     else if (resourceType == ResourceType.Enemy)
     {
         hudEnemies.AddToCount(amount);
     }
 }