コード例 #1
0
        public JSpawnState(JSpawn action, GameObject target)
            : base(action, target)
        {
            ActionOne = action.ActionOne;
            ActionTwo = action.ActionTwo;

            ActionStateOne = (JFiniteTimeActionState)ActionOne.StartAction(target);
            ActionStateTwo = (JFiniteTimeActionState)ActionTwo.StartAction(target);
        }
コード例 #2
0
        public CCSpawnState(CCSpawn action, CCNode target)
            : base(action, target)
        {
            ActionOne = action.ActionOne;
            ActionTwo = action.ActionTwo;

            ActionStateOne = (CCFiniteTimeActionState)ActionOne.StartAction(target);
            ActionStateTwo = (CCFiniteTimeActionState)ActionTwo.StartAction(target);
        }
コード例 #3
0
        public static void RunEitherMonadSample()
        {
            var actionOne = new ActionOne();
            var actionTwo = new ActionTwo();

            actionOne
            .Bind(0)
            .Bind(actionTwo);
        }