Hi guys ive got a error with this script.They say parser error line 31 but i cant figure out what’s wrong with the code.
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class NetworkManager : MonoBehaviour {
public string PlayerName;
public string MatchName;
public static NetworkManager Instance;
public List<Player>PLayerList = new List<Player>();
// Use this for initialization
void Start () {
Instance = this;
}
// Update is called once per frame
void Update () {
}
public void StartServer(string ServerName, int MaxPlayers){
Network.InitializeSecurity ();
Network.InitializeServer (MaxPlayers,25565);
MasterServer.RegisterHost ("Tut", ServerName);
Debug.Log ("Started Server");
}
}
[System.Serializable]
public class Player
public string PlayerName
}