private void OnTriggerExit(Collider col) { var agent = col.GetComponentInParent <Agent>(); foreach (var effect in OnExit) { var states = effect.Space == Space.Self ? agent.States : World.Instance.States; GOAPUtils.SetState(effect, states); } }
public void Set(ActionEffect effect) { var states = effect.Space == Space.Self ? effect.Action.States : World.Instance.States; GOAPUtils.SetState(effect, states); }