コード例 #1
0
    // Use this for initialization
    void Start()
    {
        GetStores();
        GetStoreUpgrades();

        LoadGameData.LoadSaveGame();

        storePanelScrollbar.value = 1;

        //Set Current Balance Text
        currentBalance.text = "$" + balance.ToString();

        // Example of Observer pattern
        // Notify all observers that we have updated the game balance
        // This is how the interface knows to update without using updates
        if (OnUpdateBalance != null)
        {
            OnUpdateBalance();
        }
    }
コード例 #2
0
 private void Start()
 {
     LoadGameData.LoadSaveGame(); // Loading game data
 }