예제 #1
0
 public void takeDamage(float amount)
 {
     Value -= amount;
     //Debug.Log("furniture health is " + Value);
     if (Value < 0)
     {
         currentPlayerData.earnMoney(initialValue);
         //Debug.Log("furniture destroyed");
         Die();
     }
 }