Exemple #1
0
        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");
        }
Exemple #2
0
        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");
        }