private void OnBackPress() { if (fragReference.currentStatus == ConnectionStatus.STATUS_DISCONNECTED) { canvasReference.TransitionToScreen(CanvasScript.Screens.TankControlsScreen, CanvasScript.Screens.MainScreen); } else { fragReference.CloseSocket(); Application.Quit(); } }
private void OnBackPress() { if (confirmationPopup.gameObject.activeSelf) { OnConfirmationNo(); } else if (inputPopup.gameObject.activeSelf) { inputPopup.gameObject.SetActive(false); } else { canvasReference.TransitionToScreen(CanvasScript.Screens.ReMapScreen, CanvasScript.Screens.SettingsScreen); } }
private void TestButtonFunction() { //canvasReference.TransitionToPopup(CanvasScript.Screens.EnableBTPrompt, true); canvasReference.TransitionToScreen(CanvasScript.Screens.MainScreen, CanvasScript.Screens.TankControlsScreen); }
private void OnRemapControlsClick() { canvasReference.TransitionToScreen(CanvasScript.Screens.SettingsScreen, CanvasScript.Screens.ReMapScreen); }
private IEnumerator ChangeScreen() { yield return(new WaitForSeconds(1f)); canvasReference.TransitionToScreen(CanvasScript.Screens.ConnectingScreen, CanvasScript.Screens.TankControlsScreen); }