public void handleEnemyDeath(CombatCharacter enemy) { charactersInCombat.Remove(enemy); if (charactersInCombat.Count == 1) { gameStarted = false; AdventureController.Instance().victoryAnimation(); } }
private void endCutscene() { if (curCutscene == curAdventure.preAdventureCutscene) { resolvePreBattleCutscene(); } else { switchToBattle(); AdventureController.Instance().continueWithAdventure(); } }
public void resolvePreBattleCutscene() { switchToBattle(); AdventureController.Instance().startAdventure(curAdventure); }
IEnumerator finishEncounter(float waitTime) { yield return(new WaitForSeconds(waitTime)); AdventureController.Instance().finishEncounter(); }