コード例 #1
0
ファイル: GameMenu.cs プロジェクト: troseberry/Woodlands
    void UpdateResources()
    {
        currencyCount.text          = PlayerResources.GetCurrentCurrencyValue().ToString();
        buildingMaterialsCount.text = PlayerResources.GetCurrentBuildingMaterialsValue().ToString();
        toolPartsCount.text         = PlayerResources.GetCurrentToolPartsValue().ToString();
        bookPagesCount.text         = PlayerResources.GetCurrentBookPagesValue().ToString();

        felledTreesCount.text = HomesteadStockpile.GetTreesCountAsString();
        logsCount.text        = HomesteadStockpile.GetLogsCountAsString();
        firewoodCount.text    = HomesteadStockpile.GetFirewoodCountAsString();
    }