under battle-ending script,
wrote a if statement check if player or ai's health reaching to 0 or negative
Task script test:
inside the if statement, led player to a different scene
set player's hp to 5, and make player lose 6hp from one battle
check if player is being directed to other scene
under battle-ending script, wrote a if statement check if player or ai's health reaching to 0 or negative
Task script test: inside the if statement, led player to a different scene set player's hp to 5, and make player lose 6hp from one battle check if player is being directed to other scene