Beispiel #1
0
 public static void FF9SFX_Play(Int32 id)
 {
     if (!FF9Sfx.muteSfx)
     {
         FF9Snd.ff9snd_sndeffect_play(id, 8388608, 127, 128);
     }
 }
Beispiel #2
0
 private void CheckBlackjackKey(Control keyCode)
 {
     if (!this.isReadyToBlackjack)
     {
         return;
     }
     if (this.blackjackKeyCodeCount < this.blackjackKeyCodeList.Count)
     {
         Control control = this.blackjackKeyCodeList[this.blackjackKeyCodeCount];
         if (control == keyCode)
         {
             this.blackjackKeyCodeCount++;
             if (this.blackjackKeyCodeCount == this.blackjackKeyCodeList.Count)
             {
                 FF9Snd.ff9snd_sndeffect_play(103, 8388608, 127, 128);
                 this.isStartToBlackjack = true;
             }
         }
         else
         {
             this.blackjackKeyCodeCount = 0;
         }
     }
     if (keyCode == Control.Pause)
     {
         if (this.isStartToBlackjack)
         {
             FF9Snd.ff9snd_sndeffect_play(3096, 8388608, 127, 128);
             SceneDirector.Replace("EndGame", SceneTransition.FadeOutToBlack_FadeIn, true);
             SceneDirector.ToggleFadeAll(false);
         }
         else
         {
             SceneDirector.Replace("Title", SceneTransition.FadeOutToBlack_FadeIn, true);
         }
     }
 }