Example #1
0
 // Use this for initialization
 void Start()
 {
     if (playername.Equals("Player"))
     {
         hud.setPlayerHp(HP);
     }
     else
     {
         hud.setEnemyHp(HP);
     }
 }
Example #2
0
 // Use this for initialization
 public void sethp(int hp)
 {
     HP = hp;
     hud.setEnemyHp(HP);
 }