public void Hide() { #if UNITY_ANDROID || UNITY_IPHONE RexTouchInput rexTouchInput = GameManager.Instance.player.GetComponent <RexTouchInput>(); if (rexTouchInput != null) { rexTouchInput.ToggleTouchInterface(true); } #endif if (audio && hideSound && text.gameObject.activeSelf) { audio.PlayOneShot(hideSound); } text.text = ""; text.gameObject.SetActive(false); StartCoroutine("HideCoroutine"); }
public void Show(string _text) { #if UNITY_ANDROID || UNITY_IPHONE RexTouchInput rexTouchInput = GameManager.Instance.player.GetComponent <RexTouchInput>(); if (rexTouchInput != null) { rexTouchInput.ToggleTouchInterface(false); } #endif if (audio && showSound) { audio.PlayOneShot(showSound); } text.text = _text; text.gameObject.SetActive(true); GameManager.Instance.player.RemoveControl(); isCloseEnabled = false; advanceIcon.SetActive(false); StartCoroutine("ShowCoroutine"); }