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

        UpdateAgent();
    }
Example #2
0
 void LateUpdate()
 {
     if (IsPalyer)
     {
         UpdateAgent();
     }
     else
     {
         GOAPManager.FindCriticalGoal();
     }
 }
Example #3
0
 //玩家角色更新Agent,非玩家角色设置GOAP目标FindCriticalGoal
 void LateUpdate()
 {
     if (IsPlayer)
     {
         UpdateAgent();
     }
     else
     {
         GoapManager.FindCriticalGoal();
     }
     //UpdateAgent();
 }
Example #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();
 }