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(); } }