示例#1
0
文件: Enemy.cs 项目: iggyzuk/smash
    private void Explode()
    {
        VisualUtils.AddExplosion(this.transform.position);

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

        GameObject.Destroy(this.gameObject);
    }
示例#2
0
文件: Barrel.cs 项目: iggyzuk/smash
    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);
    }
示例#3
0
文件: Barrel.cs 项目: iggyzuk/smash
    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;
    }