public override void OnEnter() { base.OnEnter(); InitScenes(); IntervalAction action = new MoveTo(_duration, PointF.Empty); _inScene.RunAction(new Sequence(action, new CallFunc(Finish))); }
public override void OnEnter() { base.OnEnter(); SizeF s = Director.Instance.WinSize; var actionTo = new MoveTo(2, new PointF(s.Width - 40, s.Height - 40)); var actionBy = new MoveBy(2, new PointF(80, 80)); _tamara.RunAction(actionTo); _grossini.RunAction(new Sequence(actionBy, actionBy.Reverse() as IntervalAction)); }
public override Action Reverse() { // artistic license not found in Cocos2D iPhone MoveTo reversed = new MoveTo(Duration, _startPosition); reversed._endPosition = _startPosition; return reversed; }