Ejemplo n.º 1
0
    void OnDeath()
    {
        WinManager.current.RemoveFromList(this);

        currentState = State.DEAD;

        ragdollController.SetRagdollActiveState(true);

        NMAgent.isStopped   = true;
        mineTrigger.enabled = false;

        OnDisable(); // unsub from events
    }