示例#1
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);
        }
示例#2
0
        protected internal override void Step(float dt)
        {
            InnerActionState.Step(dt);

            if (InnerActionState.IsDone)
            {
                float diff = InnerActionState.Elapsed - InnerActionState.Duration;
                InnerActionState = (CCFiniteTimeActionState)InnerAction.StartAction(Target);
                InnerActionState.Step(0f);
                InnerActionState.Step(diff);
            }
        }
示例#3
0
        protected internal override void Step (float dt)
        {
            InnerActionState.Step (dt);

            if (InnerActionState.IsDone)
            {
                float diff = InnerActionState.Elapsed - InnerActionState.Duration;
                InnerActionState = (CCFiniteTimeActionState)InnerAction.StartAction (Target);
                InnerActionState.Step (0f);
                InnerActionState.Step (diff);
            }
        }
示例#4
0
 public CCRepeatForeverState (CCRepeatForever action, CCNode target)
     : base (action, target)
 { 
     InnerAction = action.InnerAction;
     InnerActionState = (CCFiniteTimeActionState)InnerAction.StartAction (target);
 }
示例#5
0
 public CCReverseTimeState(CCReverseTime action, CCNode target)
     : base(action, target)
 {
     Other      = action.Other;
     OtherState = (CCFiniteTimeActionState)Other.StartAction(target);
 }
示例#6
0
 public CCReverseTimeState (CCReverseTime action, CCNode target)
     : base (action, target)
 {   
     Other = action.Other;
     OtherState = (CCFiniteTimeActionState)Other.StartAction (target);
 }
示例#7
0
 public CCRepeatForeverState(CCRepeatForever action, CCNode target)
     : base(action, target)
 {
     InnerAction      = action.InnerAction;
     InnerActionState = (CCFiniteTimeActionState)InnerAction.StartAction(target);
 }
示例#8
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);
        }