void Update() { if (Input.GetKeyDown(KeyCode.Escape)) { OrbbecManager.DoExit(); } if (Input.GetKey(KeyCode.KeypadEnter) || Input.GetKey(KeyCode.Return) || Input.GetKey((KeyCode)10) || Input.GetKey(KeyCode.Joystick1Button0) || Input.GetKey(KeyCode.Joystick1Button1) || Input.GetKey(KeyCode.Joystick2Button0) || Input.GetKey(KeyCode.Joystick2Button1)) { OnSetting(); return; } if (Input.GetKeyDown(KeyCode.UpArrow)) { TypeIndex = (TypeIndex + typeArray.Length - 1) % typeArray.Length; } else if (Input.GetKeyDown(KeyCode.DownArrow)) { TypeIndex = (TypeIndex + 1) % typeArray.Length; } UpdateSelectState(); if (Input.anyKeyDown) { UpdateContext(); } }
void onHomeKeyDown() { Debug.LogError("HomeKeyListenrCallBack:onHomeKeyDown Start"); if (OrbbecManager.Instance != null) { OrbbecManager.Instance.DoDestroy(); OrbbecManager.DoExit(); } else { OrbbecManager.DoExit(); // Application.Quit(); } Debug.LogError("HomeKeyListenrCallBack:onHomeKeyDown Finsh"); }