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