void OnDeath() { WinManager.current.RemoveFromList(this); currentState = State.DEAD; ragdollController.SetRagdollActiveState(true); NMAgent.isStopped = true; mineTrigger.enabled = false; OnDisable(); // unsub from events }
void OnDeath() { WinManager.current.RemoveFromList(this); currentState = State.DEAD; ragdollController.SetRagdollActiveState(true); NMAgent.isStopped = true; mineTrigger.enabled = false; OnDisable(); // unsub from events }