protected void InitUI()
        {
            resumeGameButton.onClick.AddListener(() =>
            {
                GameManager.instance.Unpause();
            });

            optionsButton.onClick.AddListener(() =>
            {
                UIOptionsWindow.onClose = () =>
                {
                    UIOptionsWindow.instance.FadeOut(() => FadeIn());
                };

                FadeOut(() => UIOptionsWindow.instance.FadeIn());
            });

            exitButton.onClick.AddListener(() =>
            {
                UIConfirmWindow.Setup(
                    text: "You will lose your progress.",
                    onConfirm: () =>
                {
                    UIConfirmWindow.instance.FadeOut();
                    GameManager.instance.KillGameAndBringBackMainMenu();
                },
                    onCancel: () =>
                {
                    UIConfirmWindow.instance.FadeOut(() => FadeIn());
                }
                    );

                FadeOut(() => UIConfirmWindow.instance.FadeIn());
            });
        }
        public override void AwakeFromManager()
        {
            base.AwakeFromManager();
            CheckBindings();
            InitUI();

            instance = this;
        }
     public override void AwakeFromManager()
     {
         base.AwakeFromManager();
         CheckBindings();
         InitUI();
 
         instance = this;
     }