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