예제 #1
0
 void OnPreconditionRemoved(GOAPState _condition)
 {
     if (ConditionElements.TryGetValue(_condition, out VisualElement e))
     {
         conditionFoldout.Remove(e);
         ConditionElements.Remove(_condition);
     }
 }
예제 #2
0
 void OnEffectRemoved(GOAPState _newEffect)
 {
     if (EffectElements.TryGetValue(_newEffect, out VisualElement e))
     {
         effectFoldout.Remove(e);
         EffectElements.Remove(_newEffect);
     }
 }
 private void RemoveVisualElementFromFoldout(VisualElement visualElement, Foldout foldout)
 {
     foldout.Remove(visualElement);
 }