Exemplo n.º 1
0
 private void OnCollsionWithEnemy(Collision collision)
 {
     health = health - healthLoseOnCollision;
     uISingleton.setHealth(health);
 }
Exemplo n.º 2
0
 void Start()
 {
     uISingleton = UISingleton.Instance;
     uISingleton.setHealth(health);
 }