mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Remove unnecesary pragmas
This commit is contained in:
parent
60692f0373
commit
23f1b2b0a5
@ -485,9 +485,7 @@ void OnServerStartMatch(NetworkConnection conn)
|
||||
if (playerMatches.TryGetValue(conn, out matchId))
|
||||
{
|
||||
GameObject matchControllerObject = Instantiate(matchControllerPrefab);
|
||||
#pragma warning disable 618
|
||||
matchControllerObject.GetComponent<NetworkMatch>().matchId = matchId;
|
||||
#pragma warning restore 618
|
||||
NetworkServer.Spawn(matchControllerObject);
|
||||
|
||||
MatchController matchController = matchControllerObject.GetComponent<MatchController>();
|
||||
@ -497,9 +495,7 @@ void OnServerStartMatch(NetworkConnection conn)
|
||||
playerConn.Send(new ClientMatchMessage { clientMatchOperation = ClientMatchOperation.Started });
|
||||
|
||||
GameObject player = Instantiate(NetworkManager.singleton.playerPrefab);
|
||||
#pragma warning disable 618
|
||||
player.GetComponent<NetworkMatch>().matchId = matchId;
|
||||
#pragma warning restore 618
|
||||
NetworkServer.AddPlayerForConnection(playerConn, player);
|
||||
|
||||
if (matchController.player1 == null)
|
||||
|
Loading…
Reference in New Issue
Block a user