Exemple #1
0
 public void OnEnterEffect(SphereCDM sphere)
 {
     if (LevelManager.singleton.hasScoreReached)
     {
         StartExitCountdown();
         RpcExitEvent();
     }
 }
Exemple #2
0
 public void OnEnterEffect(SphereCDM sphere)
 {
     if (GameManager.singleton.isPlaying && !GameManager.singleton.invisibleSphere)
     {
         GameManager.singleton.AddToScore();
         _coroutineHandle = StartCoroutine(ScoreCooldown());
     }
     RpcMotionPointEvent();
 }
Exemple #3
0
 public void OnExitEffect(SphereCDM sphere)
 {
     /*
      * sphere.Damage ();
      * if (GameManager.singleton.invisibleSphere) {
      *      sphere.GetComponent<Blinker> ().FadeOut ();
      *      sphere.GetComponent<Blinker> ().RpcFadeOut ();
      * }
      */
 }
Exemple #4
0
 public void OnEnterEffect(SphereCDM sphere)
 {
     GameManager.singleton.AddToScore(-scoreValue);
     this.velocity = 0.0f;
     if (GameManager.singleton.invisibleSphere)
     {
         sphere.Damage();
     }
     NetworkManager.Destroy(this.gameObject);
 }
Exemple #5
0
 public void OnStayEffect(SphereCDM sphere)
 {
     if (GameManager.singleton.isPlaying && !GameManager.singleton.invisibleSphere)
     {
         if (!_cooldown)
         {
             GameManager.singleton.AddToScore();
             _coroutineHandle = StartCoroutine(ScoreCooldown());
         }
     }
 }
Exemple #6
0
        public void OnEnterEffect(SphereCDM sphere)
        {
            sphere.LoseLife(damage);
            //sphere.Damage ();
            sphere.DestroySphere();

            /*
             * GameManager.singleton.AddToScore (-1);
             * StartCoroutine (ScoreCooldown ())
             */
        }
Exemple #7
0
        public void OnStayEffect(SphereCDM sphere)
        {
            sphere.LoseLife(damage);
            sphere.DestroySphere();

            /*
             * if (!_cooldown) {
             *      GameManager.singleton.AddToScore (-1);
             *      StartCoroutine (ScoreCooldown ());
             * }
             */
        }
Exemple #8
0
 public void OnEnterEffect(SphereCDM sphere)
 {
     this.gameObject.SetActive(false);
     GameManager.singleton.AddToScore(scoreValue);
     if (GameManager.singleton.GetCurrentLevel().sphereVisibility == Level.SphereVisibility.FadeAfterStartLevel ||
         GameManager.singleton.GetCurrentLevel().sphereVisibility == Level.SphereVisibility.Invisible)
     {
         sphere.Blink();
     }
     RpcDisable();
     RpcPickupEvent();
 }
Exemple #9
0
 public void OnEnterEffect(SphereCDM sphere)
 {
     if (_damaged)
     {
         return;
     }
     sphere.LoseLife(1);
     sphere.Damage();
     if (this.isDestroyedOnHit)
     {
         NetworkServer.Destroy(this.gameObject);
     }
     else
     {
         Blink();
     }
 }
Exemple #10
0
 public void OnExitEffect(SphereCDM sphere)
 {
     StopCoroutine(_coroutineHandle);
 }
Exemple #11
0
 public void OnExitEffect(SphereCDM sphere)
 {
     sphere.isInvincible = false;
     RpcOnExit();
 }
Exemple #12
0
 public void OnExitEffect(SphereCDM sphere)
 {
     StopExitCountdown();
 }
Exemple #13
0
 public void OnEnterEffect(SphereCDM sphere)
 {
     sphere.isInvincible = true;
     RpcOnEnter();
 }