Exemple #1
0
    private void Explode()
    {
        VisualUtils.AddExplosion(this.transform.position);

        GetComponentInChildren <ParticleSystem>().transform.SetParent(null);

        GameObject.Destroy(this.gameObject);
    }
Exemple #2
0
    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);
    }
Exemple #3
0
    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;
    }