Exemple #1
0
        // Update is called once per frame
        void Update()
        {
            /*
             * if (Input.GetKey(KeyCode.Q))
             * {
             *  MoveBehavior.Up();
             * }
             *
             * if (Input.GetKey(KeyCode.E))
             * {
             *  MoveBehavior.Down();
             * }
             *
             * if (Input.GetKey(KeyCode.S))
             * {
             *  MoveBehavior.Back();
             * }
             * if(Input.GetKey(KeyCode.W))
             * {
             *  MoveBehavior.Forward();
             * }
             * if(Input.GetKey(KeyCode.A))
             * {
             *  MoveBehavior.Left();
             * }
             * if(Input.GetKey(KeyCode.D))
             * {
             *  MoveBehavior.Right();
             * }
             *
             *
             * if (Input.GetKey(KeyCode.H))
             * {
             *  MoveBehavior.RotateClockwise();
             * }
             * if (Input.GetKey(KeyCode.K))
             * {
             *  MoveBehavior.RotateCounterClockwise();
             * }
             *
             * if (Input.GetKey(KeyCode.I))
             * {
             *  MoveBehavior.RotateRight();
             * }
             * if (Input.GetKey(KeyCode.Y))
             * {
             *  MoveBehavior.RotateLeft();
             * }
             *
             * if (Input.GetKey(KeyCode.U))
             * {
             *  MoveBehavior.RotateForward();
             * }
             * if (Input.GetKey(KeyCode.J))
             * {
             *  MoveBehavior.RotateBackward();
             * }
             *
             *
             *
             * if (Input.GetKey(KeyCode.R))
             * {
             *  MoveBehavior.ScaleUp();
             * }
             * if (Input.GetKey(KeyCode.F))
             * {
             *  MoveBehavior.ScaleDown();
             * }
             *
             */


            if (Input.GetKey(KeyCode.Backspace))
            {
                MoveBehavior.Delete();
            }

            if (Input.GetKey(KeyCode.LeftControl) && Input.GetKeyDown(KeyCode.C))
            {
                MoveBehavior.Copy();
            }
        }
 // Update is called once per frame
 void DeleteButtonListener()
 {
     _moveBehavior.Delete();
 }