Exemplo n.º 1
0
 // Token: 0x06001E97 RID: 7831 RVA: 0x000A7834 File Offset: 0x000A5C34
 public static void save()
 {
     EditorInteract.save();
     EditorTerrainHeight.save();
     EditorTerrainMaterials.save();
     EditorObjects.save();
     EditorSpawns.save();
 }
Exemplo n.º 2
0
 private void Start()
 {
     EditorSpawns._isSpawning      = false;
     EditorSpawns._itemSpawn       = ((GameObject)Object.Instantiate(Resources.Load("Edit/Item"))).transform;
     EditorSpawns.itemSpawn.name   = "Item Spawn";
     EditorSpawns.itemSpawn.parent = Level.editing;
     EditorSpawns.itemSpawn.gameObject.SetActive(false);
     if ((int)EditorSpawns.selectedItem < LevelItems.tables.Count)
     {
         EditorSpawns.itemSpawn.GetComponent <Renderer>().material.color = LevelItems.tables[(int)EditorSpawns.selectedItem].color;
     }
     EditorSpawns._playerSpawn       = ((GameObject)Object.Instantiate(Resources.Load("Edit/Player"))).transform;
     EditorSpawns.playerSpawn.name   = "Player Spawn";
     EditorSpawns.playerSpawn.parent = Level.editing;
     EditorSpawns.playerSpawn.gameObject.SetActive(false);
     EditorSpawns._playerSpawnAlt       = ((GameObject)Object.Instantiate(Resources.Load("Edit/Player_Alt"))).transform;
     EditorSpawns.playerSpawnAlt.name   = "Player Spawn Alt";
     EditorSpawns.playerSpawnAlt.parent = Level.editing;
     EditorSpawns.playerSpawnAlt.gameObject.SetActive(false);
     EditorSpawns._zombieSpawn       = ((GameObject)Object.Instantiate(Resources.Load("Edit/Zombie"))).transform;
     EditorSpawns.zombieSpawn.name   = "Zombie Spawn";
     EditorSpawns.zombieSpawn.parent = Level.editing;
     EditorSpawns.zombieSpawn.gameObject.SetActive(false);
     if ((int)EditorSpawns.selectedZombie < LevelZombies.tables.Count)
     {
         EditorSpawns.zombieSpawn.GetComponent <Renderer>().material.color = LevelZombies.tables[(int)EditorSpawns.selectedZombie].color;
     }
     EditorSpawns._vehicleSpawn       = ((GameObject)Object.Instantiate(Resources.Load("Edit/Vehicle"))).transform;
     EditorSpawns.vehicleSpawn.name   = "Vehicle Spawn";
     EditorSpawns.vehicleSpawn.parent = Level.editing;
     EditorSpawns.vehicleSpawn.gameObject.SetActive(false);
     if ((int)EditorSpawns.selectedVehicle < LevelVehicles.tables.Count)
     {
         EditorSpawns.vehicleSpawn.GetComponent <Renderer>().material.color = LevelVehicles.tables[(int)EditorSpawns.selectedVehicle].color;
         EditorSpawns.vehicleSpawn.FindChild("Arrow").GetComponent <Renderer>().material.color = LevelVehicles.tables[(int)EditorSpawns.selectedVehicle].color;
     }
     EditorSpawns._animalSpawn        = ((GameObject)Object.Instantiate(Resources.Load("Edit/Animal"))).transform;
     EditorSpawns._animalSpawn.name   = "Animal Spawn";
     EditorSpawns._animalSpawn.parent = Level.editing;
     EditorSpawns._animalSpawn.gameObject.SetActive(false);
     if ((int)EditorSpawns.selectedAnimal < LevelAnimals.tables.Count)
     {
         EditorSpawns.animalSpawn.GetComponent <Renderer>().material.color = LevelAnimals.tables[(int)EditorSpawns.selectedAnimal].color;
     }
     EditorSpawns._remove       = ((GameObject)Object.Instantiate(Resources.Load("Edit/Remove"))).transform;
     EditorSpawns.remove.name   = "Remove";
     EditorSpawns.remove.parent = Level.editing;
     EditorSpawns.remove.gameObject.SetActive(false);
     EditorSpawns.spawnMode = ESpawnMode.ADD_ITEM;
     EditorSpawns.load();
 }