Exemplo n.º 1
0
        public void StartChat()
        {
            ChatGui chatNewComponent = FindObjectOfType <ChatGui>();

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

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


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

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

            handler.ShowChannel(this.Channel);
        }