Exemple #1
0
    void EndBattle()
    {
        if (State == BattleState.WON)
        {
            WON.SetActive(true);
            //enemyPrefab.SetActive(false);
        }

        else if (State == BattleState.LOST)
        {
            LOST.SetActive(true);
            //playerPrefab.SetActive(false);
        }
    }
Exemple #2
0
    void EndBattle()
    {
        if (State == BattleState.WON)
        {
            winBox.SetActive(true);
            WON.SetActive(true);
            End.SetActive(true);
        }

        else if (State == BattleState.LOST)
        {
            loseBox.SetActive(true);
            LOST.SetActive(true);
            End.SetActive(true);
        }
    }