Exemplo n.º 1
0
 public void Die()
 {
     AgentController.DestroyAgent(Agent);
     if (Agent.Animator.IsNotNull())
     {
         Agent.SetState(AnimState.Dying);
         Agent.Animator.Visualize();
     }
 }
Exemplo n.º 2
0
 public void Die(bool immediate = false)
 {
     AgentController.DestroyAgent(this, immediate);
     if (Animator.IsNotNull())
     {
         SetState(AnimState.Dying);
         Animator.Visualize();
     }
 }
Exemplo n.º 3
0
        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);
         }
     }
 }
Exemplo n.º 5
0
 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();
         }
     }
 }