// Use this for initialization
    void Start()
    {
        upgradeHomeButton.onClick.AddListener(OnUpgradeHomeButtonClicked);
        upgradeTraitsButton.onClick.AddListener(OnUpgradeTraitsButtonClicked);

        gameStateManager = GameObject.Find("GameState_Manager").GetComponent <GameState_Manager>();
        gameStateManager.RegisterOnGameStateChanged(OnGameStateChanged);
        OnGameStateChanged(gameStateManager.GetState(), gameStateManager.GetState());

        backButton.onClick.AddListener(OnBackButtonClicked);
    }
Exemple #2
0
 // Use this for initialization
 void Start()
 {
     gameStateManager = GameObject.Find("GameState_Manager").GetComponent <GameState_Manager>();
     gameStateManager.RegisterOnGameStateChanged(OnGameStateChanged);
     mainTitleScreen.ShowScreen();
 }