コード例 #1
0
 public void WalkBackToBase()
 {
     if (m_FollowerInstance != null)
     {
         m_FollowerInstance.distributor.UnregisterFollower(m_FollowerInstance);
     }
     m_Target = null;
     StopPursuit();
     m_Controller.SetTarget(originalPosition);
     m_Controller.SetFollowNavmeshAgent(true);
 }
コード例 #2
0
 public void WalkBackToBase()
 {
     if (FollowerInstance != null)
     {
         FollowerInstance.distributor.UnregisterFollower(FollowerInstance);
     }
     Target = null;
     StopPursuit();
     Controller.SetTarget(OriginalPosition);
     Controller.SetMove(OriginalPosition);
     Controller.SetFollowNavmeshAgent(true);
     Controller.animator.SetBool(Walk, true);
 }