void OnApplicationPause(bool pauseState) { if (pauseState) { #if UNITY_IOS && !UNITY_EDITOR DeactivateKeyboard(); #elif UNITY_ANDROID && !UNITY_EDITOR //NOTHING to do anything. Android widget handle itself FIZZKeyboard.HideKeyboard(); #endif } }
void OnDisable() { sendButton.onClick.RemoveListener(OnSend); #if UNITY_EDITOR || UNITY_STANDALONE inputEditor.onDone.RemoveListener(OnSend); inputEditor.onSelect.RemoveListener(OnInputFieldSelect); inputEditor.onDeselect.RemoveListener(OnInputFieldDeselect); #else inputMobile.GetComponent <Button> ().onClick.RemoveListener(ActivateKeyboard); #endif FizzService.Instance.OnConnected -= OnFizzConnected; FizzService.Instance.OnDisconnected -= OnFizzDisconnected; #if UNITY_IPHONE && !UNITY_EDITOR DeactivateKeyboard(); #elif UNITY_ANDROID && !UNITY_EDITOR FIZZKeyboard.HideKeyboard(); #endif }