public void SetSideStatus(PlayerSideStatus newStatus)
 {
     if (newStatus == PlayerSideStatus.Paused)
     {
         GreyscaleScreen(false);
     }
     else
     {
         GreyscaleScreen(true);
     }
     sideStatus = newStatus;
 }
    // Update is called once per frame
    void Update()
    {
        if (!isPositionMatching())
        {
            rb.velocity = GetVectorToMoveTowards() * CAMERA_VELOCITY;
        }
        else
        {
            rb.velocity = Vector3.Lerp(rb.velocity, Vector3.zero, Time.deltaTime);
        }

        transform.rotation = Quaternion.Euler(89.9f, 0, 0);

        if (debug && Input.GetKeyDown(KeyCode.KeypadEnter))
        {
            if (sideStatus == PlayerSideStatus.Active)
            {
                sideStatus = PlayerSideStatus.Paused;
            }
            else
            {
                sideStatus = PlayerSideStatus.Active;
            }
        }
        if (sideStatus == PlayerSideStatus.Paused)
        {
            playerController.LockMovement();
            if (player == AIManager.Instance.playerOne)
            {
                AIManager.Instance.FreezeSideEnemies(AIManager.Instance.leftSideEnemies, true);
            }
            else if (player == AIManager.Instance.playerTwo)
            {
                AIManager.Instance.FreezeSideEnemies(AIManager.Instance.rightSideEnemies, true);
            }
            if (!greyscaleIn)
            {
                GreyscaleScreen(true);
            }
        }
        else if (sideStatus == PlayerSideStatus.Active)
        {
            if (!greyscaleOut)
            {
                GreyscaleScreen(false);
            }
            playerController.UnlockMovement();

            if (player == AIManager.Instance.playerOne)
            {
                AIManager.Instance.FreezeSideEnemies(AIManager.Instance.leftSideEnemies, false);
            }
            else if (player == AIManager.Instance.playerTwo)
            {
                AIManager.Instance.FreezeSideEnemies(AIManager.Instance.rightSideEnemies, false);
            }
        }

        if (greyscale && colorGrading)
        {
            if (greyscaleIn)
            {
                if (colorGrading.saturation.value > -99)
                {
                    colorGrading.saturation.value -= Time.fixedDeltaTime * (greyscaleFadeSpeed * 20);
                }
                else if (colorGrading.saturation <= -99)
                {
                    colorGrading.saturation.Override(-100);
                }
            }

            if (greyscaleOut)
            {
                if (colorGrading.saturation.value < -1)
                {
                    colorGrading.saturation.value += Time.fixedDeltaTime * (greyscaleFadeSpeed * 20);
                }
                else if (colorGrading.saturation >= -1)
                {
                    colorGrading.saturation.Override(0);
                }
            }
        }
    }