Exemplo n.º 1
0
        public override void Update(float deltaTime)
        {
            if (Input.IsKeyDown(Keys.Z))
            {
                Undo();
            }

            if (currentPhase != null)
            {
                currentPhase.Update(deltaTime);
            }
        }
Exemplo n.º 2
0
        public override void Update(float deltaTime)
        {
            if (Input.IsKeyDown(Keys.Z))
            {
                Console.WriteLine("Pressed Z Key");
                Undo();
            }

            if (currentPhase != null)
            {
                currentPhase.Update(deltaTime);
            }
        }