public void OnEnterEffect(SphereCDM sphere) { if (LevelManager.singleton.hasScoreReached) { StartExitCountdown(); RpcExitEvent(); } }
public void OnEnterEffect(SphereCDM sphere) { if (GameManager.singleton.isPlaying && !GameManager.singleton.invisibleSphere) { GameManager.singleton.AddToScore(); _coroutineHandle = StartCoroutine(ScoreCooldown()); } RpcMotionPointEvent(); }
public void OnExitEffect(SphereCDM sphere) { /* * sphere.Damage (); * if (GameManager.singleton.invisibleSphere) { * sphere.GetComponent<Blinker> ().FadeOut (); * sphere.GetComponent<Blinker> ().RpcFadeOut (); * } */ }
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 OnStayEffect(SphereCDM sphere) { if (GameManager.singleton.isPlaying && !GameManager.singleton.invisibleSphere) { if (!_cooldown) { GameManager.singleton.AddToScore(); _coroutineHandle = StartCoroutine(ScoreCooldown()); } } }
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) { 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(); }
public void OnEnterEffect(SphereCDM sphere) { if (_damaged) { return; } sphere.LoseLife(1); sphere.Damage(); if (this.isDestroyedOnHit) { NetworkServer.Destroy(this.gameObject); } else { Blink(); } }
public void OnExitEffect(SphereCDM sphere) { StopCoroutine(_coroutineHandle); }
public void OnExitEffect(SphereCDM sphere) { sphere.isInvincible = false; RpcOnExit(); }
public void OnExitEffect(SphereCDM sphere) { StopExitCountdown(); }
public void OnEnterEffect(SphereCDM sphere) { sphere.isInvincible = true; RpcOnEnter(); }