public void OnEnterEffect(SphereCDM sphere) { sphere.LoseLife(damage); //sphere.Damage (); sphere.DestroySphere(); /* * GameManager.singleton.AddToScore (-1); * StartCoroutine (ScoreCooldown ()) */ }
public void OnStayEffect(SphereCDM sphere) { sphere.LoseLife(damage); sphere.DestroySphere(); /* * if (!_cooldown) { * GameManager.singleton.AddToScore (-1); * StartCoroutine (ScoreCooldown ()); * } */ }
public void OnEnterEffect(SphereCDM sphere) { if (_damaged) { return; } sphere.LoseLife(1); sphere.Damage(); if (this.isDestroyedOnHit) { NetworkServer.Destroy(this.gameObject); } else { Blink(); } }