Exemplo n.º 1
0
        public override void OnEnter()
        {
            base.OnEnter();
            _tamara.Visible = false;

            JumpBy jump = new JumpBy(2, new PointF(300, 0), 50, 4);
            Sequence action = Sequence.Construct(jump, jump.Reverse() as FiniteTimeAction);

            _grossini.RunAction(action);
        }
Exemplo n.º 2
0
        public override void OnEnter()
        {
            base.OnEnter();

            JumpTo actionTo = new JumpTo(2, new PointF(300, 300), 50, 4);
            JumpBy actionBy = new JumpBy(2, new PointF(300, 0), 50, 4);
            JumpBy actionByBack = actionBy.Reverse() as JumpBy;

            _tamara.RunAction(actionTo);
            _grossini.RunAction(new Sequence(actionBy, actionByBack));
        }