private void Update()
    {
        if (Input.GetKeyDown(KeyCode.Escape))
        {
            if (looser)
            {
                MainSettings.SetDefaultSettings();
                SceneManager.LoadScene("Level");
            }
            MainSettings.NotPause = !MainSettings.NotPause;
            //if (MainSettings.NotPause) { MainSettings.NotPause = false; } else { MainSettings.NotPause = true; }
        }

        if (MainSettings.NotPause && MainSettings.Players.UnLockController)
        {
            controllerX = transform.position.x + Input.GetAxis("Mouse X");
            controllerY = transform.position.y + Input.GetAxis("Mouse Y");
            if (controllerX < MinMaxWidth.x)
            {
                controllerX = MinMaxWidth.x;
            }
            else
            {
                if (controllerX > MinMaxWidth.y)
                {
                    controllerX = MinMaxWidth.y;
                }
            }
            if (controllerY < MinMaxHeight.x)
            {
                controllerY = MinMaxHeight.x;
            }
            else
            {
                if (controllerY > MinMaxHeight.y)
                {
                    controllerY = MinMaxHeight.y;
                }
            }
            if (controllerX > transform.position.x + 0.1f)
            {
                mech.transform.rotation = Quaternion.Lerp(mech.transform.rotation, Quaternion.Euler(-90, -RotateAngle, 0), Time.deltaTime * RotateSpeed);
            }
            else
            {
                if (controllerX < transform.position.x - 0.01f)
                {
                    mech.transform.rotation = Quaternion.Lerp(mech.transform.rotation, Quaternion.Euler(-90, RotateAngle, 0), Time.deltaTime * RotateSpeed);
                }
                else
                {
                    mech.transform.rotation = Quaternion.Lerp(mech.transform.rotation, Quaternion.Euler(-90, 0, 0), Time.deltaTime * RotateSpeed);
                }
            }
            transform.position = Vector3.Lerp(transform.position, new Vector3(controllerX, controllerY, -20), Time.deltaTime * MoovingSpeed);

            if (Input.GetMouseButtonDown(0) && MainSettings.Weapon.Rocket.Count > 0)
            {
                MainSettings.Weapon.Rocket.Count--; CreateNotMainShot("MissleShot", new Vector3(transform.position.x, transform.position.y, transform.position.z + 5), new Vector3(-90, 0, 0));
            }
            if (Input.GetMouseButtonDown(1) && MainSettings.Weapon.Bomb.Count > 0)
            {
                MainSettings.Weapon.Bomb.Count--; CreateNotMainShot("Bomb", new Vector3(transform.position.x, transform.position.y, transform.position.z + 5), new Vector3(-90, 0, 0));
            }



            #region ForTesting
            if (Input.GetKeyDown(KeyCode.Space))
            {
                if (MainSettings.Players.Invulnerability)
                {
                    MainSettings.Players.Invulnerability = false;
                }
                else
                {
                    MainSettings.Players.Invulnerability = true;
                }
            }

            #region MainWeapon

            if (Input.GetKeyDown(KeyCode.Alpha1))
            {
                MainSettings.Weapon.MainWeapon.Power = 0;
            }
            if (Input.GetKeyDown(KeyCode.Alpha2))
            {
                MainSettings.Weapon.MainWeapon.Power = 1;
            }
            if (Input.GetKeyDown(KeyCode.Alpha3))
            {
                MainSettings.Weapon.MainWeapon.Power = 2;
            }
            if (Input.GetKeyDown(KeyCode.Alpha4))
            {
                MainSettings.Weapon.MainWeapon.Power = 3;
            }
            if (Input.GetKeyDown(KeyCode.Alpha5))
            {
                MainSettings.Weapon.MainWeapon.Power = 4;
            }
            if (Input.GetKeyDown(KeyCode.Alpha6))
            {
                MainSettings.Weapon.MainWeapon.Power = 5;
            }
            if (Input.GetKeyDown(KeyCode.Alpha0))
            {
                Bonus(AddBonusScript.BonusType.MainWeapon);
            }
            #endregion
            #region Add|Subtract Life
            if (Input.GetKeyDown(KeyCode.Q))
            {
                MainSettings.Lifes.Count = MainSettings.Lifes.Count - 1;
                Debug.Log(MainSettings.Lifes.Count);
            }
            if (Input.GetKeyDown(KeyCode.W))
            {
                MainSettings.Lifes.Count++;
                Debug.Log(MainSettings.Lifes.Count);
            }
            if (Input.GetKeyDown(KeyCode.E))
            {
                Bonus(AddBonusScript.BonusType.Life);
            }
            #endregion
            #region Add|Subtract Rocket
            if (Input.GetKeyDown(KeyCode.A))
            {
                MainSettings.Weapon.Rocket.Count--;
            }
            if (Input.GetKeyDown(KeyCode.S))
            {
                MainSettings.Weapon.Rocket.Count++;
            }
            if (Input.GetKeyDown(KeyCode.D))
            {
                Bonus(AddBonusScript.BonusType.Rocket);
            }
            #endregion
            #region Add|Subtract Nuclear
            if (Input.GetKeyDown(KeyCode.Z))
            {
                MainSettings.Weapon.Bomb.Count--;
            }
            if (Input.GetKeyDown(KeyCode.X))
            {
                MainSettings.Weapon.Bomb.Count++;
            }
            if (Input.GetKeyDown(KeyCode.C))
            {
                Bonus(AddBonusScript.BonusType.Nuclear);
            }
            #endregion
            #endregion
        }
    }