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