Beispiel #1
0
 private void ConfigureZones()
 {
     zoneManager.Authority = true;
     zoneManager.CreateZone(new Vector3(0, 0, 200));
     zoneManager.CreateZone(new Vector3(0, 0, -200));
     zoneManager.AddSelfAsServer();
 }
Beispiel #2
0
    private void ConfigureZones()
    {
        zoneManager.Authority = true;
        zoneManager.CreateZone(new Vector3(0, 0, 0));
        zoneManager.AddSelfAsServer();

        gameObject.AddComponent <LoginServer>();
    }
Beispiel #3
0
 //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();
 }