public void Die() { AgentController.DestroyAgent(Agent); if (Agent.Animator.IsNotNull()) { Agent.SetState(AnimState.Dying); Agent.Animator.Visualize(); } }
public void Die(bool immediate = false) { AgentController.DestroyAgent(this, immediate); if (Animator.IsNotNull()) { SetState(AnimState.Dying); Animator.Visualize(); } }
public void Die(bool immediate = false) { AgentController.DestroyAgent(this, immediate); if (Animator.IsNotNull()) { SetState(AnimState.Dying); // Animator.Visualize(); // TODO: Now call in LockstepManager.LateVisualize () } }
public static void ClearAgents() { for (int i = GlobalAgents.Length - 1; i >= 0; i--) { if (GlobalAgentActive [i]) { LSAgent agent = GlobalAgents [i]; AgentController.DestroyAgent(agent); } } }
public void Die() { if (Agent.IsActive) { if (onDie != null) { this.onDie(this, this.LastAttacker); } AgentController.DestroyAgent(Agent); if (Agent.Animator.IsNotNull()) { Agent.SetState(AnimState.Dying); Agent.Animator.Visualize(); } } }