Ejemplo n.º 1
0
    public void SendChatMessage()
    {
        string message = instance.chatInputField.text;

        instance.chatInputField.text = "";

        if (message.Length == 0 || message.Replace(" ", "") == "")
        {
            return;
        }

        NetworkMessageResolve.NetworkChatMessageRequest(currentMessageType, message, chatMessageType.GetComponentInChildren <Text>().text);

        //enterInputIgnore = true;
        EventSystem.current.SetSelectedGameObject(null);
    }