void Update() { if (mMenuAnim && mMenuAnim.IsVisible()) { mTapCount = 0; mTimeSinceLastTap = 0; } else { HandleTap(); } }
void Update() { if (mMenuAnim && mMenuAnim.IsVisible()) { mTapCount = 0; mTimeSinceLastTap = 0; } else { HandleTap(); } #if UNITY_ANDROID // On Android, the Back button is mapped to the Esc key if (Input.GetKeyUp(KeyCode.Escape)) { UnityEngine.SceneManagement.SceneManager.LoadScene("1-About"); } #endif }
void Update() { if (mMenuAnim && mMenuAnim.IsVisible()) { mTapCount = 0; mTimeSinceLastTap = 0; } else { HandleTap(); } #if UNITY_ANDROID // On Android, the Back button is mapped to the Esc key if (Input.GetKeyUp(KeyCode.Escape)) { #if (UNITY_5_2 || UNITY_5_1 || UNITY_5_0) Application.LoadLevel("Vuforia-1-About"); #else // UNITY_5_3 or above UnityEngine.SceneManagement.SceneManager.LoadScene("Vuforia-1-About"); #endif } #endif }
void Update() { if (mVuforiaStarted) { // The target builder canvas must be shown only when the menu UI is NOT shown, // and vice versa (so that they do not overlap each other) bool menuShown = mMenuAnim && mMenuAnim.IsVisible(); if (mTargetBuilderCanvas.enabled == menuShown) { mTargetBuilderCanvas.enabled = !menuShown; } } else { if (mTargetBuilderCanvas.enabled) { mTargetBuilderCanvas.enabled = false; } } }