示例#1
0
        public void StartChat()
        {
            ChatGui chatNewComponent = FindObjectOfType <ChatGui>();

            chatNewComponent.UserName = this.idInput.text.Trim();
            chatNewComponent.Connect();
            this.enabled = false;

            PlayerPrefs.SetString(UserNamePlayerPref, chatNewComponent.UserName);
        }
示例#2
0
        public void Start()
        {
            this.chatNewComponent = FindObjectOfType <ChatGui>();


            string prefsName = PlayerPrefs.GetString(UserNamePlayerPref);

            if (!string.IsNullOrEmpty(prefsName))
            {
                this.idInput.text = prefsName;
            }
        }
        public void OnPointerClick(PointerEventData eventData)
        {
            ChatGui handler = FindObjectOfType <ChatGui>();

            handler.ShowChannel(this.Channel);
        }