示例#1
0
    void LateUpdate()
    {
        if (IsPlayer == false)
        {
            m_GoalManager.FindCriticalGoal();
            return;
        }

        UpdateAgent();
    }
示例#2
0
 void LateUpdate()
 {
     if (IsPalyer)
     {
         UpdateAgent();
     }
     else
     {
         GOAPManager.FindCriticalGoal();
     }
 }
示例#3
0
 //玩家角色更新Agent,非玩家角色设置GOAP目标FindCriticalGoal
 void LateUpdate()
 {
     if (IsPlayer)
     {
         UpdateAgent();
     }
     else
     {
         GoapManager.FindCriticalGoal();
     }
     //UpdateAgent();
 }
示例#4
0
 //player Agent更新
 void LateUpdate()
 {
     if (IsPlayer == false)
     {
         //Debug.LogError("LateUpdate&&IsPlayer=false,FindCriticalGoal()");
         m_GoalManager.FindCriticalGoal();
         //UpdateAgent();
         //WorldState.SetWSProperty(E_PropKey.E_IDLING, m_GoalManager.CurrentGoal == null);
         //Debug.LogError(CurrentGOAPGoal);
         return;
     }
     UpdateAgent();
 }