コード例 #1
0
ファイル: Characters.cs プロジェクト: bslupik/GGJ_FixItfelix
 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);
 }