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

            if (currentPhase != null)
            {
                currentPhase.Update(deltaTime);
            }
        }
Example #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);
            }
        }