コード例 #1
0
 private void NoHandler()
 {
     Audio.PlayGameSoundAtTransform(KMSoundOverride.SoundEffect.ButtonPress, NoButton.transform);
     NoButton.AddInteractionPunch();
     if (!_lightsOn || _isSolved)
     {
         return;
     }
     Debug.LogFormat("[Digital Root #{0}] Button with the label \"NO\" pressed", _moduleId);
     if (DigitalRoot && YesAns == NoButton || !DigitalRoot && NoAns == NoButton)
     {
         Debug.LogFormat("[Digital Root #{0}] Module Passed!", _moduleId);
         Audio.PlayGameSoundAtTransform(KMSoundOverride.SoundEffect.CorrectChime, NoButton.transform);
         Module.HandlePass();
         _isSolved = true;
     }
     else
     {
         Debug.LogFormat("[Digital Root #{0}] Strike!", _moduleId);
         Module.HandleStrike();
     }
 }