예제 #1
0
    public void SendMessage(string type, string content)
    {
        var newMessage = new Message(type, content);

        Sended.Add(newMessage);

        NetworkManager.AddNetworkOperation(CreateSendMessageOperation(newMessage));
    }
예제 #2
0
    /// <summary>
    /// Match a rival and start game
    /// </summary>
    private void Match(Callback <bool> callback)
    {
        var request = CreateMatchRequest(callback);

        NetworkManager.AddNetworkOperation(request);
    }