Example #1
0
    public void KillPlayer()
    {
        Global.AddDeath((int)_playerController.Index);
        _playerCollider.enabled       = false;
        _charachterController.enabled = false;

        _playerAnimController.Die();
        Global.StartKillingSomePlayer((int)_playerController.Index);
        Invoke("Respawn", _timeForRespawn);

        _deathParticle.Clear();
        _deathParticle.Play();
        SoundManager.Instance.PlaySomeAudio("Death");
    }