예제 #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
        protected internal override void Step(float dt)
        {
            InnerActionState.Step(dt);

            if (InnerActionState.IsDone)
            {
                float diff = InnerActionState.Elapsed - InnerActionState.Duration;
                InnerActionState = (JFiniteTimeActionState)InnerAction.StartAction(Target);
                InnerActionState.Step(0f);
                InnerActionState.Step(diff);
            }
        }
예제 #3
0
 public JActionEaseState(JActionEase action, GameObject target) : base(action, target)
 {
     InnerActionState = (JFiniteTimeActionState)action.InnerAction.StartAction(target);
 }
예제 #4
0
 public JReverseTimeState(JReverseTime action, GameObject target)
     : base(action, target)
 {
     Other      = action.Other;
     OtherState = (JFiniteTimeActionState)Other.StartAction(target);
 }
예제 #5
0
 public JRepeatForeverState(JRepeatForever action, GameObject target)
     : base(action, target)
 {
     InnerAction      = action.InnerAction;
     InnerActionState = (JFiniteTimeActionState)InnerAction.StartAction(target);
 }