Beispiel #1
0
 private void BackButtonHandler()
 {
     MouseModeManager.SetMouseLocked(true);
     PlayerController.SetEnabled(true);
     Destroy(View.gameObject);
     IsOpen = false;
 }
Beispiel #2
0
        public override void OnRegister()
        {
            base.OnRegister();

            PlayerController.SetEnabled(false);
            MouseModeManager.SetMouseLocked(false);

            AddButtonListener(View.OkButton, OkButtonHandler);

            //actually make sure player have read the intro text and clicked mkey button, mkey?
            //AddButtonListener(View.BackgroundButton, OkButtonHandler);
        }
Beispiel #3
0
        public override void OnRegister()
        {
            base.OnRegister();

            AddButtonListener(View.QuitButton, QuitButtonHandler);
            AddButtonListener(View.BackButton, BackButtonHandler);
            AddButtonListener(View.BackgroundButton, BackButtonHandler);

            MouseModeManager.SetMouseLocked(false);
            PlayerController.SetEnabled(false);

            IsOpen = true;
        }
Beispiel #4
0
 private void OkButtonHandler()
 {
     Destroy(View.gameObject);
     PlayerController.SetEnabled(true);
     MouseModeManager.SetMouseLocked(true);
 }