// サーバーへ接続された public void OnConnectedToServer() { m_State = NetworkDefines.ConnectionState.Connect; NetworkEvent e = new ConnectedToServerEvent { }; NotifyObservers(e); }
/// <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()); }
Task OnConnected(ConnectedToServerEvent arg) { IsConnected = true; ServiceProxy_ConnectionChanged(); return(Task.CompletedTask); }
void OnConnectedToServerEvent(ConnectedToServerEvent e) { MessageSender.instance.SendMessageToHost("RequestRegistration", PlayerName); }