Пример #1
0
        public SpawnState(Spawn action, Node target)
            : base(action, target)
        {
            ActionOne = action.ActionOne;
            ActionTwo = action.ActionTwo;

            ActionStateOne = (FiniteTimeActionState)ActionOne.StartAction(target);
            ActionStateTwo = (FiniteTimeActionState)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 = (FiniteTimeActionState)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 = (FiniteTimeActionState)InnerAction.StartAction (Target);
				InnerActionState.Step (0f);
				InnerActionState.Step (diff);
			}
		}
Пример #4
0
 public ActionEaseState(ActionEase action, Node target) : base(action, target)
 {
     InnerActionState = (FiniteTimeActionState)action.InnerAction.StartAction(target);
 }
Пример #5
0
		public SpawnState (Spawn action, Node target)
			: base (action, target)
		{ 
			ActionOne = action.ActionOne;
			ActionTwo = action.ActionTwo;

			ActionStateOne = (FiniteTimeActionState)ActionOne.StartAction (target);
			ActionStateTwo = (FiniteTimeActionState)ActionTwo.StartAction (target);
		}
Пример #6
0
 public ReverseTimeState(ReverseTime action, Node target)
     : base(action, target)
 {
     Other      = action.Other;
     OtherState = (FiniteTimeActionState)Other.StartAction(target);
 }
Пример #7
0
		public ActionEaseState (ActionEase action, Node target) : base (action, target)
		{
			InnerActionState = (FiniteTimeActionState)action.InnerAction.StartAction (target);
		}
Пример #8
0
		public ReverseTimeState (ReverseTime action, Node target)
			: base (action, target)
		{   
			Other = action.Other;
			OtherState = (FiniteTimeActionState)Other.StartAction (target);
		}
Пример #9
0
 public RepeatForeverState(RepeatForever action, Node target)
     : base(action, target)
 {
     InnerAction      = action.InnerAction;
     InnerActionState = (FiniteTimeActionState)InnerAction.StartAction(target);
 }
Пример #10
0
		public RepeatForeverState (RepeatForever action, Node target)
			: base (action, target)
		{ 
			InnerAction = action.InnerAction;
			InnerActionState = (FiniteTimeActionState)InnerAction.StartAction (target);
		}