public void StartChat()
        {
            ChatGui chatNewComponent = FindObjectOfType <ChatGui>();

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

            PlayerPrefs.SetString(NamePickGui.UserNamePlayerPref, chatNewComponent.UserName);
        }
        public void Start()
        {
            this.chatNewComponent = FindObjectOfType <ChatGui>();


            string prefsName = PlayerPrefs.GetString(NamePickGui.UserNamePlayerPref);

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

            handler.ShowChannel(this.Channel);
        }