// Use this for initialization private void Start() { Rect r = new Rect(20, Screen.height / 2 - 200, 200, 400); _commandWindow = new Window(r, 200, "Squad Commands"); _commandWindow.AddTab(DrawSquadCommandWindow, "Squad Commands"); }
void Awake() { DontDestroyOnLoad(this); this.transform.parent = null; shipConfigurationManagerWindow = new Window(new Rect(Screen.width / 2 - 512, Screen.height / 2 - 384, 1024, 768), this.GetInstanceID(), "SHIP CONFIGURATION MANAGER"); shipConfigurationManagerWindow.AddTab(DrawShipConfigurationManager, "SHIPS"); SaveShipConfigurations saveConfigs = new SaveShipConfigurations(); saveConfigs.Load(this); }
void Awake() { planetName = planetNames[Random.Range(0, planetNames.Length - 1)]; planetInfo.SetPlanetName(planetName); planetSize = PlanetSizes.medium; switch (planetSize) { case PlanetSizes.tiny: break; case PlanetSizes.small: break; case PlanetSizes.medium: break; case PlanetSizes.large: break; case PlanetSizes.huge: break; } planetWindow = new Window(new Rect(Screen.width / 2 - 400, Screen.height / 2 - 200, 800, 400), 15, planetName); planetWindow.AddTab(DrawPlanetWindow, "PLANET"); }
void Start() { noClickThroughAreas.Add(GUIManager.endTurnButton); player.faction.shipConfigurationManager.shipConfigurationManagerWindow.CloseWindow += CloseWindow; faction = player.faction; factionOverviewWindow = new Window(new Rect(Screen.width / 2 - 300, Screen.height / 2 - 200, 600, 400), 7, "Faction Overview"); factionOverviewWindow.AddTab(DrawFactionOverviewWindow, "Summary"); diplomacyWindow = new Window(new Rect(Screen.width / 2 - 300, Screen.height / 2 - 200, 600, 400), 8, "Diplomacy"); diplomacyWindow.AddTab(DrawDiplomacyWindow, "Summary"); researchWindow = new Window(new Rect(Screen.width / 2 - 300, Screen.height / 2 - 200, 600, 400), 9, "Research"); researchWindow.AddTab(DrawResearchWindow, "Summary"); }