Remove unnecesary pragmas

This commit is contained in:
MrGadget1024 2021-09-24 07:21:02 -04:00
parent 60692f0373
commit 23f1b2b0a5

View File

@ -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)