Ejemplo n.º 1
0
        public void SetGameData(GameData loadingData)
        {
            placementTilesHolder.Init(loadingData.activeTiles);
            CurrencyManager.instance.SetCurrency(loadingData.coins);
            enemySpawner.Init(loadingData.currentWave, loadingData.maxWave);
            castle.Init(loadingData.gatesHp);

            upgradeSystem.SetUpgradesFromLoad(loadingData.upgradeSaveDatas);
            buildManager.BuildLoadedTowers(loadingData.towerSaveDatas);
        }