예제 #1
0
 protected override void OnGameLobbyJoinRequested(object sender, SteamGameLobbyJoinRequestedEventArgs e)
 {
     base.OnGameLobbyJoinRequested(sender, e);
     if (new Steamworks.SteamID(e.Message.m_steamIDLobby).IsValid)
     {
         ELCPUtilities.SteamMatchMaking_TryConnectingToLobby(e.Message.m_steamIDLobby);
     }
 }
예제 #2
0
 public override void Begin(params object[] parameters)
 {
     base.Begin(parameters);
     this.viewService = Services.GetService <Amplitude.Unity.View.IViewService>();
     if (this.viewService != null)
     {
         this.viewService.PostViewChange(typeof(OutGameView), parameters);
     }
     if (AgeLocalizer.Instance != null)
     {
         this.SetRichPresenceStatus();
     }
     else
     {
         this.guiService = Services.GetService <Amplitude.Unity.Gui.IGuiService>();
         Diagnostics.Assert(this.guiService != null);
         this.guiService.GuiSceneStateChange += this.IGuiService_GuiSceneStateChange;
     }
     if (parameters.Length == 1 && parameters[0] is ulong && new Steamworks.SteamID((ulong)parameters[0]).IsValid)
     {
         ELCPUtilities.SteamMatchMaking_TryConnectingToLobby((ulong)parameters[0]);
     }
 }