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 ()); * } */ }