public override bool CanEnter() { if (negation) { return(target && !target.IsValid()); } else { return(target && target.IsValid()); } }
public override bool PerformAction() { if (perform) { Debug.Log("Perform " + ++n); } if (location && location.IsValid()) { Debug.Log(location + ": " + location.GetTargetObject()); } return(base.PerformAction()); }