Ejemplo n.º 1
0
    public void endBattle()
    {
        if (!gameController.paused)
        {
            gameController.PauseGame();
        }
        awardEXP();
        awardSkillPoints();
        listDrops();

        for (int i = 0; i < numPlayerCharas; i++)
        {
            playerTargetIcons[i].SetActive(false);
        }

        if (numPlayerCharas > 1)
        {
            for (int i = 0; i < numPlayerCharas; i++)
            {
                if (gameController.currentParty[i] != gameController.currentCharacter)
                {
                    gameController.currentParty[i].SetActive(false);
                }
            }
        }

        targetMenu.SetActive(false);
        skillsMenu.SetActive(false);
        itemsMenu.SetActive(false);
        battleMenu.SetActive(false);
        winScreen.SetActive(true);

        foreach (GameObject playerItem in playerItems)
        {
            Destroy(playerItem);
        }
        numItems = 0;

        foreach (GameObject target in targetsList)
        {
            Destroy(target);
        }
        numTargets = 0;

        foreach (GameObject skill in skillItems)
        {
            Destroy(skill);
        }

//		foreach (GameObject player in playerParty)
//		{
//			Destroy(player);
//		}
    }