private void ConfigureZones() { zoneManager.Authority = true; zoneManager.CreateZone(new Vector3(0, 0, 200)); zoneManager.CreateZone(new Vector3(0, 0, -200)); zoneManager.AddSelfAsServer(); }
private void ConfigureZones() { zoneManager.Authority = true; zoneManager.CreateZone(new Vector3(0, 0, 0)); zoneManager.AddSelfAsServer(); gameObject.AddComponent <LoginServer>(); }
//Server Method private void ConfigureZones() { zoneManager.Authority = true; for (int i = 0; i < xSize; i++) { for (int j = 0; j < ySize; j++) { zoneManager.CreateZone(new Vector3(i * zoneSize, 0, j * zoneSize)); } } zoneManager.AddSelfAsServer(); }