Esempio n. 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);
        }
Esempio n. 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);
            }
        }
Esempio n. 3
0
 public JActionEaseState(JActionEase action, GameObject target) : base(action, target)
 {
     InnerActionState = (JFiniteTimeActionState)action.InnerAction.StartAction(target);
 }
Esempio n. 4
0
 public JReverseTimeState(JReverseTime action, GameObject target)
     : base(action, target)
 {
     Other      = action.Other;
     OtherState = (JFiniteTimeActionState)Other.StartAction(target);
 }
Esempio n. 5
0
 public JRepeatForeverState(JRepeatForever action, GameObject target)
     : base(action, target)
 {
     InnerAction      = action.InnerAction;
     InnerActionState = (JFiniteTimeActionState)InnerAction.StartAction(target);
 }