Exemple #1
0
 public void AcceptCharacter()
 {
     if (characterID == lysID)
     {
         lysEnabled = true;
         audioManager.StopLysTheme();
     }
     else if (characterID == jacqueID)
     {
         jacqueEnabled = true;
         audioManager.StopJacqueTheme();
         BuildingManager.instance.OnHealthBonusMayHaveChanged();
         PlayerStatsScript.instance.UpdateMind(-200f);
     }
     else if (characterID == steelID)
     {
         steelEnabled = true;
         audioManager.StopSteelTheme();
         PlayerStatsScript.instance.UpdateSoul(-100f);
     }
     else if (characterID == angelID)
     {
         angelEnabled = true;
         audioManager.StopAngelTheme();
     }
     audioManager.PlayDayTheme();
     characterCanvas.SetActive(false);
 }