void levelFinished() { GameMaster.lastCompletedLevel = GameMaster.Level; InvManager.GoldAdd(stagedGold); stagedGold = 0; InvManager.T1ShardAdd(stagedShard1); stagedShard1 = 0; InvManager.T2ShardAdd(stagedShard2); stagedShard2 = 0; WordDatav2.endOfLevelStats(region, difficulty, level, 10, 3); vicDefPanel.SetActive(true); }
public void TestAddHeroClicked() { InvManager.GoldAdd(30); InvManager.T1ShardAdd(10); InvManager.T2ShardAdd(10); Debug.Log("current Inv:" + InvManager.GoldReturn().ToString() + " gold, " + InvManager.T1ShardAmount().ToString() + " T1s, " + InvManager.T2ShardAmount().ToString() + " T2s"); for (int i = 0; i < CharectorStats.numOfHeroes(); i++) { var character = CharectorStats.UnlockedCharector(i); CharectorStats.testAddExp(i, 10); } SaveManager.SaveParse(); //GameMaster.CallSave(); }