private void BuyItem(object obj) { PartyManager.curParty.gp -= shopItemToConfirm.price; PartyManager.curParty.items.Add(Instantiate(shopItemToConfirm.item)); shopGoldModel.GoldValueChanged(); mVCHelper.EndUI(obj); returnPage.Return(); }
private void BackoutOrExit(object obj) //TODO: make a seperate exit monobehavior maybe or at least make the end panels a public MVCHelper list { mVCHelper.CallEvent(UIEvents.end, null); subPannelToClose.CallEvent(UIEvents.end, null); //pausePanel.CallEvent(UIEvents.pause, null); if (returnPanel != null) { returnPanel.Return(); } //else //{ // //Pauser.UnpauseGame(); //} }
protected void BackoutOrExit(object obj) //TODO: make a seperate exit monobehavior maybe or at least make the end panels a public MVCHelper list { goldPanel?.CallEvent(UIEvents.end, null); shopTypePanel?.CallEvent(UIEvents.end, null); messagePanel?.CallEvent(UIEvents.end, null); mVCHelper.CallEvent(UIEvents.end, null); if (returnPanel != null) { returnPanel.Return(); } else { Pauser.UnpauseGame(); } }