示例#1
0
 /// <summary>
 /// Set the stun value of the enemy and toggle the movement navigation
 /// </summary>
 private void SetStunned(bool isStunned)
 {
     // Disable the nav and stun the brain
     if (Agent)
     {
         Agent.enabled = !isStunned;
     }
     Brain.SetStunned(isStunned);
 }
示例#2
0
 /// <summary>
 /// Set the stun value of the enemy and toggle the movement navigation
 /// </summary>
 private void SetStunned(bool isStunned)
 {
     // Disable the nav and stun the brain
     _agent.enabled = !isStunned;
     _brain.SetStunned(isStunned);
 }