public void StartChat() { ChatGui chatNewComponent = FindObjectOfType <ChatGui>(); chatNewComponent.UserName = this.idInput.text.Trim(); chatNewComponent.Connect(); this.enabled = false; PlayerPrefs.SetString(UserNamePlayerPref, chatNewComponent.UserName); }
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); }