protected virtual void OnPlayerConnectedToMatch(MultiplayerAPI.PlayerInformation player) { UFE.multiplayerAPI.OnPlayerConnectedToMatch -= this.OnPlayerConnectedToMatch; UFE.multiplayerAPI.OnPlayerDisconnectedFromMatch += this.OnPlayerDisconnectedFromMatch; if (UFE.config.debugOptions.connectionLog) { Debug.Log("Match Starting..."); } UFE.StartNetworkGame(0.5f, 1, false); }
protected virtual void OnJoined(MultiplayerAPI.JoinedMatchInformation match) { UFE.multiplayerAPI.OnJoined -= this.OnJoined; UFE.multiplayerAPI.OnJoinError -= this.OnJoinError; UFE.multiplayerMode = UFE.MultiplayerMode.Online; this.StopSearchingMatchGames(); if (UFE.config.debugOptions.connectionLog) { Debug.Log("Match Starting..."); } UFE.StartNetworkGame(0.5f, 2, false); }