Пример #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);
 }