protected void MissionFinished() { PersonInfo.AddCoins(coinAward); PersonInfo.AddGold(goldAward); this.state = MissionStates.FINISHED; for (int i = 0; i < missionListeners.Count; i++) { ((IMissionListener)missionListeners[i]).MissionFinished(this); } }
public static void PurchaseSucceeded(string id) { if (id.Equals(COIN_PACK_1)) { PersonInfo.AddCoins(7500); } if (id.Equals(COIN_PACK_2)) { PersonInfo.AddCoins(30000); } if (id.Equals(COIN_PACK_3)) { PersonInfo.AddCoins(150000); } if (id.Equals(COIN_PACK_4)) { PersonInfo.AddCoins(300000); } if (id.Equals(COIN_PACK_5)) { PersonInfo.AddCoins(500000); } if (id.Equals(GOLD_PACK_1)) { PersonInfo.AddGold(50); } if (id.Equals(GOLD_PACK_2)) { PersonInfo.AddGold(120); } if (id.Equals(GOLD_PACK_3)) { PersonInfo.AddGold(250); } if (id.Equals(GOLD_PACK_4)) { PersonInfo.AddGold(560); } if (id.Equals(GOLD_PACK_5)) { PersonInfo.AddGold(1400); } }
public override void ShowOnScreen() { base.ShowOnScreen(); PersonInfo.AddCoins(GlobalOptions.GetGuiLayer().GetMoney()); }