public MotionDelegatorPack AddMotion(object RefValue, object TargetValue, int TotalTick, AnimationClip.PlayMode PlayMode = AnimationClip.PlayMode.CLAMP, MotionDelegatorPack.AccelerationMode AccelerationMode = MotionDelegatorPack.AccelerationMode.Constant, float ConstantVelocityPercent = 1.0f) { MotionDelegatorPack motionDelegatorPack = new MotionDelegatorPack(RefValue, TargetValue, TotalTick, PlayMode, ConstantVelocityPercent, AccelerationMode, PlayStatus.PLAYING); motions.Add(motionDelegatorPack); return(motionDelegatorPack); }
public IMoiveClip AppendMotion(object RefValue, object ToValue, int TotalTick, AnimationClip.PlayMode PlayMode = AnimationClip.PlayMode.CLAMP, float ConstanceVelocityPercent = 1.0f, MotionDelegatorPack.AccelerationMode AccMode = MotionDelegatorPack.AccelerationMode.Constant) { MotionDelegatorPack motionDelegatorPack = motionDelegator.AddMotion(RefValue, ToValue, TotalTick, PlayMode, AccMode, ConstanceVelocityPercent); motionDelegatorPack.Stop(); motionDelegatorPack.SetStartTick(editCurTick); editCurTick += motionDelegatorPack.GetTotalTick(); movieClips.Add(motionDelegatorPack); return(motionDelegatorPack); }