public static IExecuteNodeChain Sequence <T>(this T selfbehaviour) where T : MonoBehaviour
        {
            var retNodeChain = new SequenceNodeChain();

            retNodeChain.Executer = selfbehaviour;
            retNodeChain.DisposeWhenGameObjDestroyed();
            return(retNodeChain);
        }
Esempio n. 2
0
        public static IActionChain Sequence <T>(this T selfbehaviour) where T : MonoBehaviour
        {
            var retNodeChain = new SequenceNodeChain {
                Executer = selfbehaviour
            };

            retNodeChain.AddTo(selfbehaviour);
            return(retNodeChain);
        }
Esempio n. 3
0
        public static IActionChain Sequence <T>(this T selfbehaviour) where T : MonoBehaviour
        {
            var retNodeChain = new SequenceNodeChain {
                Executer = selfbehaviour
            };

            retNodeChain.DisposeWhenGameObjectDestroyed(selfbehaviour);
            return(retNodeChain);
        }