コード例 #1
0
        public static IExecuteNodeChain Sequence <T>(this T selfbehaviour) where T : MonoBehaviour
        {
            var retNodeChain = new SequenceNodeChain();

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

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

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