public void OnEnterEffect(SphereCDM sphere) { GameManager.singleton.AddToScore(-scoreValue); this.velocity = 0.0f; if (GameManager.singleton.invisibleSphere) { sphere.Damage(); } NetworkManager.Destroy(this.gameObject); }
public void OnEnterEffect(SphereCDM sphere) { if (_damaged) { return; } sphere.LoseLife(1); sphere.Damage(); if (this.isDestroyedOnHit) { NetworkServer.Destroy(this.gameObject); } else { Blink(); } }