public void SendMessage(string type, string content) { var newMessage = new Message(type, content); Sended.Add(newMessage); NetworkManager.AddNetworkOperation(CreateSendMessageOperation(newMessage)); }
/// <summary> /// Match a rival and start game /// </summary> private void Match(Callback <bool> callback) { var request = CreateMatchRequest(callback); NetworkManager.AddNetworkOperation(request); }