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