public CCActionTweenState(CCActionTween action, CCNode target) : base(action, target) { Debug.Assert(Target is ICCActionTweenDelegate, "target must implement CCActionTweenDelegate"); TweenAction = action.TweenAction; From = action.From; To = action.To; Key = action.Key; Delta = To - From; }
public CCActionTweenState (CCActionTween action, CCNode target) : base (action, target) { Debug.Assert (Target is ICCActionTweenDelegate, "target must implement CCActionTweenDelegate"); TweenAction = action.TweenAction; From = action.From; To = action.To; Key = action.Key; Delta = To - From; }
public void SetZoomScaleInDuration(float s, float dt) { if (dt > 0) { if (container.ScaleX != s) { CCActionTween scaleAction = new CCActionTween(dt, "zoomScale", container.ScaleX, s); RunAction(scaleAction); } } else { ZoomScale = s; } }
public void SetZoomScaleInDuration(float s, float dt) { if (dt > 0) { if (container.ScaleX != s) { CCActionTween scaleAction = new CCActionTween (dt, "zoomScale", container.ScaleX, s); RunAction(scaleAction); } } else { ZoomScale = s; } }