Ejemplo n.º 1
0
 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());
 }
Ejemplo n.º 2
0
    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();
    }