Exemple #1
0
        public CCParallelState (CCParallel action, CCNode target)
            : base (action, target)
        {   
            Actions = action.Actions;
            ActionStates = new CCFiniteTimeActionState[Actions.Length];

            for (int i = 0; i < Actions.Length; i++)
            {
                ActionStates [i] = (CCFiniteTimeActionState)Actions [i].StartAction (target);
            }
        }
Exemple #2
0
        public CCParallelState(CCParallel action, CCNode target)
            : base(action, target)
        {
            Actions      = action.Actions;
            ActionStates = new CCFiniteTimeActionState[Actions.Length];

            for (int i = 0; i < Actions.Length; i++)
            {
                ActionStates [i] = (CCFiniteTimeActionState)Actions [i].StartAction(target);
            }
        }