예제 #1
0
    public void StartMessager()
    {
        MessageController messageNewComponent = FindObjectOfType <MessageController>();

        //messageNewComponent.UserName = this.idInput.text.Trim();
        messageNewComponent.UserName = this.messageUserID;
        Debug.Log("Starting messager: " + idInput.text.Trim());
        messageComponent.enabled = true;
        messageNewComponent.Connect();
        enabled = false;

        PlayerPrefs.SetString("NickName", messageNewComponent.UserName);
    }