using UnityEngine;
using System.Collections;
public class NetworkManager : MonoBehaviour
private const string typeName = "RhysTron";
private const string gameName = "TronRoom";
{
private void StartServer()
{
Network.InitializeServer(4, 25000, !Network.HavePublicAddress());
MasterServer.RegisterHost(typeName, gameName);
}
void OnServerInitialized()
{
Debug.Log("Server Initializied");
}
void OnGUI()
{
if (!Network.isClient && !Network.isServer)
{
if (GUI.Button(new Rect(100, 100, 250, 100), "Start Server"))
StartServer();
}
}
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
}
Full Error Assets/Scripts/NetworkManager.cs(74,7): error CS1031: Type expected.
Here is the script.