private void Explode() { VisualUtils.AddExplosion(this.transform.position); GetComponentInChildren <ParticleSystem>().transform.SetParent(null); GameObject.Destroy(this.gameObject); }
private void Shoot(Vector3 dir) { GameController.Instance.OnPlayerSetVisible(true); GameController.Instance.OnPlayerBoost(dir, 1.5f); VisualUtils.AddExplosion(this.transform.position); GameController.Instance.PlaySound(GameSettings.Instance.AudioSettings.Explosion); }
private IEnumerator BlockPlayerInputBitLonger_Coroutine() { yield return(new WaitForSeconds(0.5f)); GameController.Instance.OnPlayerInputBlocked(false); VisualUtils.AddExplosion(this.transform.position); GameObject.Destroy(this.gameObject); _isPlayerInside = false; }