示例#1
0
文件: Spawn.cs 项目: yrest/urho
        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
文件: ActionEase.cs 项目: yrest/urho
 public ActionEaseState(ActionEase action, Node target) : base(action, target)
 {
     InnerActionState = (FiniteTimeActionState)action.InnerAction.StartAction(target);
 }
示例#5
0
文件: Spawn.cs 项目: Zamir7/urho
		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
文件: ReverseTime.cs 项目: yrest/urho
 public ReverseTimeState(ReverseTime action, Node target)
     : base(action, target)
 {
     Other      = action.Other;
     OtherState = (FiniteTimeActionState)Other.StartAction(target);
 }
示例#7
0
文件: ActionEase.cs 项目: Zamir7/urho
		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);
		}