private void BackButtonHandler() { MouseModeManager.SetMouseLocked(true); PlayerController.SetEnabled(true); Destroy(View.gameObject); IsOpen = false; }
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); }
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; }
private void OkButtonHandler() { Destroy(View.gameObject); PlayerController.SetEnabled(true); MouseModeManager.SetMouseLocked(true); }