Exemple #1
0
 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);
 }
Exemple #4
0
    IEnumerator finishEncounter(float waitTime)
    {
        yield return(new WaitForSeconds(waitTime));

        AdventureController.Instance().finishEncounter();
    }