示例#1
0
    // サーバーへ接続された
    public void OnConnectedToServer()
    {
        m_State = NetworkDefines.ConnectionState.Connect;

        NetworkEvent e = new ConnectedToServerEvent {
        };

        NotifyObservers(e);
    }
示例#2
0
 /// <summary>
 /// Called when MetaPubSub was connected to a server on the service side
 /// </summary>
 /// <param name="arg"></param>
 /// <returns></returns>
 async Task OnConnectedToServer(ConnectedToServerEvent arg)
 {
     await _metaMessenger.PublishOnServer(new LoginClientRequestMessage());
 }
示例#3
0
 Task OnConnected(ConnectedToServerEvent arg)
 {
     IsConnected = true;
     ServiceProxy_ConnectionChanged();
     return(Task.CompletedTask);
 }
 void OnConnectedToServerEvent(ConnectedToServerEvent e)
 {
     MessageSender.instance.SendMessageToHost("RequestRegistration", PlayerName);
 }