private void Awake()
    {
        corePauseMenuScript = GetComponent<CorePauseMenuScript>();
        backgroundPauseMenuScript = GetComponent<BackgroundPauseMenuScript>();
        fovSliderPauseMenuScript = GetComponent<FovSliderPauseMenuScript>();
        volumeSliderPauseMenuScripts = GetComponents<VolumeSliderPauseMenuScript>();

        float titleX = GUIMatrixScript.OriginalWidth/2f - TitleWidth/2f;
        float backButtonX = GUIMatrixScript.OriginalWidth/2f - BackButtonWidth/2f;
        float backgroundX = GUIMatrixScript.OriginalWidth/2f - BackgroundWidth/2f;

        backButtonRect = new Rect(backButtonX, BackButtonY, BackButtonWidth, BackButtonHeight);
        backgroundRect = new Rect(backgroundX, BackgroundY, BackgroundWidth, BackgroundHeight);
        titleRect = new Rect(titleX, TitleY, TitleWidth, 0);
    }
    private void Awake()
    {
        corePauseMenuScript = GetComponent<CorePauseMenuScript>();
        backgroundPauseMenuScript = GetComponent<BackgroundPauseMenuScript>();

        float x = GUIMatrixScript.OriginalWidth/2f - Width/2f;
        float backgroundX = GUIMatrixScript.OriginalWidth/2f - BackgroundWidth/2f;

        float labelY = Y;
        float y1 = Y + Height + SpaceBetween;
        float y2 = Y + (Height + SpaceBetween) * 2;
        float y3 = Y + (Height + SpaceBetween) * 3;
        float y4 = Y + (Height + SpaceBetween) * 4;
        float y5 = Y + (Height + SpaceBetween) * 6;

        titleRect = new Rect(x, labelY, Width, Height);
        rect1 = new Rect(x, y1, Width, Height);
        rect2 = new Rect(x, y2, Width, Height);
        rect3 = new Rect(x, y3, Width, Height);
        rect4 = new Rect(x, y4, Width, Height);
        rect5 = new Rect(x, y5, Width, Height);

        backgroundRect = new Rect(backgroundX, BackgroundY, BackgroundWidth, BackgroundHeight);
    }