Example #1
0
 public void Act(System.Action callback)
 {
     if (nodeToUse != null)
     {
         nodeToUse.Perform(callback);
     }
     else
     {
         fallbackAbility.PerformAction(() => callback());
     }
 }
Example #2
0
 public void Perform(System.Action callback)
 {
     if (activeAbility.CanUse())
     {
         activeAbility.PerformAction(callback);
     }
     else
     {
         callback();
     }
 }
 public void PerformAction(System.Action callback)
 {
     ability.PerformAction(callback);
 }