IEnumerator BattleOver(CharacterWrapper looser) { int mr = GameState.State.tournament.currentStageNum * (GameState.State.tournament.currentStageNum + 1) * 50; int ar = reward; yield return(new WaitForSeconds(0.1f)); battleUI.SetActive(false); Inventory.Close(); playerFightButton.interactable = false; GameState.State.DefeatCharacter(looser); yield return(new WaitForSeconds(0.1f)); if (looser == player) { LostPopup.Show(); } else { RewardPopup.Show(looser, ar, mr); } }
private void Awake() { instance = this; gameObject.SetActive(false); }
public Lost(LevelManager levelManager, LostPopup lostPopup, ITouchInput input) { _levelManager = levelManager; _lostPopup = lostPopup; _input = input; }