protected override void Start() { base.Start(); FlightController.GenerateLoot(SectorID, out lootList); var lootSpots = new List <LootSpot>(FindObjectsOfType <LootSpot>()); lootSpots.Shuffle(); for (int i = 0; i < lootList.Count; i++) { lootSpots[i].Loot = lootList[i]; lootSpots[i].Active = true; } }
private void InitFlightMode(int sectorID) { if (!MapController.EnterSector()) { return; } if (loadSectors) { SwitchView(sectorID == 1 ? ViewType.Sector1 : sectorID == 2 ? ViewType.Sector2 : sectorID == 3 ? ViewType.Sector3 : ViewType.Sector4); } else { inFlightMode = true; lootCharges = State.LootCharges; FlightController.GenerateLoot(sectorID, out sectorLoot); } }