public void OpenBattleUI() { GameState.State.tournament.gameObject.SetActive(false); SwapPopup.Close(); Inventory.Close(); Shop.Close(); playerAnimation.gameObject.SetActive(true); enemyAnimation.gameObject.SetActive(true); StartCoroutine(BattleStart()); }
IEnumerator BattleStart() { yield return(new WaitForSeconds(0.1f)); RefreshStatus(true); FlashText.Flash("Fight!", Color.red); AudioPlayer.PlayFight(); yield return(new WaitForSeconds(0.1f)); battleUI.SetActive(true); GameState.State.tournament.gameObject.SetActive(false); SwapPopup.Close(); Inventory.Close(); Shop.Close(); }