Exemplo n.º 1
0
 public void healthChassman(Chessman target)
 {
     target.health += 10;
     if (target.health > target.maxHealth)
     {
         target.resetHealthVal();
         damageDisplay.instance.spawnDamageDisplay(10, 3, target.gameObject.transform);
         if (target == BoardManager.Instance.selectedChessman)
         {
             gameView.instance.updateHealthDisplay();
         }
     }
 }