private void Update() { if (Input.GetKeyDown(KeyCode.Escape)) { PhoneUtils.ExitApp(); } }
private void Update() { if (Input.GetKeyDown(KeyCode.Escape)) { if (shareObject == null || shareObject.activeSelf == false) { if (MenuLateral.Instance.IsOppened() == true) { PhoneUtils.ExitApp(); } else { OnPressBack(); } } } }