public static IExecuteNodeChain Sequence <T>(this T selfbehaviour) where T : MonoBehaviour { var retNodeChain = new SequenceNodeChain(); retNodeChain.Executer = selfbehaviour; retNodeChain.DisposeWhenGameObjDestroyed(); return(retNodeChain); }
public static IActionChain Sequence <T>(this T selfbehaviour) where T : MonoBehaviour { var retNodeChain = new SequenceNodeChain { Executer = selfbehaviour }; retNodeChain.AddTo(selfbehaviour); return(retNodeChain); }
public static IActionChain Sequence <T>(this T selfbehaviour) where T : MonoBehaviour { var retNodeChain = new SequenceNodeChain { Executer = selfbehaviour }; retNodeChain.DisposeWhenGameObjectDestroyed(selfbehaviour); return(retNodeChain); }