Esempio n. 1
0
 void Start()
 {
     if (gm == null)
     {
         gm = GameObject.FindGameObjectWithTag("GM").GetComponent <GameMasterAdmin>();
     }
 }
Esempio n. 2
0
 public void DamageToEnemy(int value)
 {
     stats.currentHP -= value;
     if (stats.currentHP <= 0)
     {
         GameMasterAdmin.KillEnemy(this);
     }
 }
Esempio n. 3
0
 public void DamageToPlayer(int value)
 {
     mplayerStats.currentHP -= value;
     if (mplayerStats.currentHP <= 0)
     {
         GameMasterAdmin.KillPlayer(this);
     }
 }