Beispiel #1
0
    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>();
    }
Beispiel #2
0
 void Awake()
 {
     Instance = this;
     gc       = GameObject.Find("GameManager").GetComponent <GameControl>();
 }