/** * Reset the goal manager after a run */ public void Reset() { if (CurrentGoal != null) { CurrentGoal.Deactivate(); CurrentGoal = null; } foreach (KeyValuePair <E_GOAPGoals, GOAPGoal> pair in Goals) { pair.Value.Reset(); } }
/** * Reset the goal manager after a run */ public void Reset() { if (CurrentGoal != null) { CurrentGoal.Deactivate(); CurrentGoal = null; } for (int i = 0; i < m_GoalSet.Count; i++) { m_GoalSet [i].Reset(); } }