private void Awake() { Instance = this; personPanel = Instantiate(personPanel, tabsPanel.transform); technologyPanel = Instantiate(technologyPanel, tabsPanel.transform); economicPanel = Instantiate(economicPanel, tabsPanel.transform); diplomacyPanel = Instantiate(diplomacyPanel, tabsPanel.transform); tradePanel = Instantiate(tradePanel, tabsPanel.transform); var actions = new ShowSmth[] { ShowTrade, ShowDiplomacy, Nope, ShowTechnology, ShowEconomic, ShowPersons }; buttonSelector = new ButtonSelector(ModeButton, actions); PanelMover = panel.GetComponent <PanelMover>(); }
public void AerodynamicsButtonPressed() { FeatureImage.SetActive(false); FeaturePanel.SetActive(false); AerodynamicsImage.SetActive(true); AerodynamicsPanel.SetActive(true); SafetyImage.SetActive(false); safetyPanel.SetActive(false); ConnectivityImage.SetActive(false); ConnectivityPanel.SetActive(false); TechnologyImage.SetActive(false); TechnologyPanel.SetActive(false); }
void Awake() { Instance = this; gc = GameObject.Find("GameManager").GetComponent <GameControl>(); }