예제 #1
0
    private void Die()
    {
        _shooter.enabled = false;
        _mover.enabled   = false;
        _mover.joystick.gameObject.SetActive(false);
        _shotProgressBar.enabled          = false;
        GetComponent <Collider>().enabled = false;

        _playerAudio.Die();
    }
예제 #2
0
    private void Die()
    {
        _enemyAnimator.Die();

        _mover.enabled   = false;
        _shooter.enabled = false;
        _jumper.enabled  = false;

        _collider.enabled = false;

        _characterAudio.Die();

        _enemyHolder.Remove(gameObject);
    }