Exemple #1
0
        protected override async void OnUpdate(float timeStep)
        {
            if (finished)
            {
                return;
            }

            var input = Application.Input;

            if (input.GetMouseButtonDown(MouseButton.Left) || input.NumTouches > 0)
            {
                finished = true;
                Application.UI.Root.RemoveChild(textBlock, 0);
                await bigAircraft.RunActionsAsync(new EaseIn(new MoveBy(1f, new Vector3(-10, -2, -10)), 3));

                rotor.RemoveAllActions();
                menuTaskSource.TrySetResult(true);
            }
        }