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