Esempio n. 1
0
 // Update is called once per frame
 void Update()
 {
     transform.Find("HP_P1").Find("HPBar").transform.localScale = new Vector3(player1.GetHealth() / 100, 1, 1);
     transform.Find("HP_P2").Find("HPBar").transform.localScale = new Vector3(player2.GetHealth() / 100, 1, 1);
 }