/// <summary> /// Is called at the end of the fight and sets the dancers states to either win, or lose state. /// </summary> /// <param name="player"></param> /// <param name="npc"></param> /// <param name="outcome"></param> public void OnBattleConcluded(Stats player, Stats npc, float outcome) { player.animController.BattleResult(outcome); // give the npc the opposite of what ever the result is. npc.animController.BattleResult(outcome * -1); // Play the appropriate sfx depending who won. sfxHandler.BattleResult(outcome); }