Esempio n. 1
0
 protected virtual void Die(bool giveGold = true)
 {
     EnemyGrid.ClearPosition(this);
     gameObject.SetActive(false);
     if (giveGold)
     {
         PlayerResources.Gold += reward;
     }
 }