예제 #1
0
 public override void PlaySound(MafiaSound sound, MafiaBufferContainer buffers)
 {
     if (!ShouldPlaySound())
     {
         return;
     }
     if (jumpSound)
     {
         sound.Play(buffers.Jump, this);
     }
     if (tiunSound)
     {
         sound.Play(buffers.Tiun, this);
     }
     if (coinSound)
     {
         sound.Play(buffers.Coin, this);
         if (Game.NumCoins > 0)
         {
             sound.Play(buffers.Hyakuyen, this);
         }
         else
         {
             sound.Play(buffers.Stiana, this);
         }
     }
 }
예제 #2
0
파일: Box.cs 프로젝트: sinshu/mafia
 public override void PlaySound(MafiaSound sound, MafiaBufferContainer buffers)
 {
     if (!ShouldPlaySound())
     {
         return;
     }
     if (MoveCount == 1)
     {
         sound.Play(buffers.BoxMove, this);
     }
     if (LandState == ON_GROUND && prevLandState == IN_AIR)
     {
         sound.Play(buffers.BoxFall, this);
     }
 }
예제 #3
0
파일: SelectScene.cs 프로젝트: sinshu/mafia
 public void PlaySound(MafiaSound sound, MafiaBufferContainer buffers)
 {
     if (selectSound)
     {
         sound.Play(buffers.Ue, null);
     }
 }
예제 #4
0
 public override void PlaySound(MafiaSound sound, MafiaBufferContainer buffers)
 {
     if (fallSound)
     {
         sound.Play(buffers.Fall, this);
     }
 }
예제 #5
0
파일: Spring.cs 프로젝트: sinshu/mafia
 public override void PlaySound(MafiaSound sound, MafiaBufferContainer buffers)
 {
     if (animation == 8)
     {
         sound.Play(buffers.Spring, this);
     }
 }
예제 #6
0
 public void PlaySound(MafiaSound sound, MafiaBufferContainer buffers)
 {
     if (selectSound)
     {
         sound.Play(buffers.Ue, null);
     }
 }
예제 #7
0
파일: Switch.cs 프로젝트: sinshu/mafia
 public override void PlaySound(MafiaSound sound, MafiaBufferContainer buffers)
 {
     if (!ShouldPlaySound()) return;
     if (pressSound)
     {
         sound.Play(buffers.Switch, this);
     }
 }
예제 #8
0
 public override void PlaySound(MafiaSound sound, MafiaBufferContainer buffers)
 {
     if (!ShouldPlaySound())
     {
         return;
     }
     if (pressSound)
     {
         sound.Play(buffers.Switch, this);
     }
 }
예제 #9
0
 public override void PlaySound(MafiaSound sound, MafiaBufferContainer buffers)
 {
     if (!ShouldPlaySound())
     {
         return;
     }
     if (moveCount == 0)
     {
         sound.Play(buffers.Lift, this);
     }
 }
예제 #10
0
파일: Spring.cs 프로젝트: sinshu/mafia
 public override void PlaySound(MafiaSound sound, MafiaBufferContainer buffers)
 {
     if (animation == 8)
     {
         sound.Play(buffers.Spring, this);
     }
 }
예제 #11
0
파일: FallBlock.cs 프로젝트: sinshu/mafia
 public override void PlaySound(MafiaSound sound, MafiaBufferContainer buffers)
 {
     if (fallSound)
     {
         sound.Play(buffers.Fall, this);
     }
 }
예제 #12
0
파일: Box.cs 프로젝트: sinshu/mafia
 public override void PlaySound(MafiaSound sound, MafiaBufferContainer buffers)
 {
     if (!ShouldPlaySound()) return;
     if (MoveCount == 1)
     {
         sound.Play(buffers.BoxMove, this);
     }
     if (LandState == ON_GROUND && prevLandState == IN_AIR)
     {
         sound.Play(buffers.BoxFall, this);
     }
 }
예제 #13
0
파일: Player.cs 프로젝트: sinshu/mafia
 public override void PlaySound(MafiaSound sound, MafiaBufferContainer buffers)
 {
     if (!ShouldPlaySound()) return;
     if (jumpSound)
     {
         sound.Play(buffers.Jump, this);
     }
     if (tiunSound)
     {
         sound.Play(buffers.Tiun, this);
     }
     if (coinSound)
     {
         sound.Play(buffers.Coin, this);
         if (Game.NumCoins > 0)
         {
             sound.Play(buffers.Hyakuyen, this);
         }
         else
         {
             sound.Play(buffers.Stiana, this);
         }
     }
 }
예제 #14
0
파일: Lift.cs 프로젝트: sinshu/mafia
 public override void PlaySound(MafiaSound sound, MafiaBufferContainer buffers)
 {
     if (!ShouldPlaySound()) return;
     if (moveCount == 0)
     {
         sound.Play(buffers.Lift, this);
     }
 }