示例#1
0
        public override void OnEnter()
        {
            base.OnEnter();

            InitScenes();

            IntervalAction action = new MoveTo(_duration, PointF.Empty);

            _inScene.RunAction(new Sequence(action, new CallFunc(Finish)));
        }
示例#2
0
        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));
        }
示例#3
0
        public override Action Reverse()
        {
            // artistic license not found in Cocos2D iPhone

            MoveTo reversed = new MoveTo(Duration, _startPosition);
            reversed._endPosition = _startPosition;

            return reversed;
        }