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