Exemplo n.º 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);
         }
     }
 }
Exemplo n.º 2
0
Arquivo: Box.cs Projeto: 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);
     }
 }
Exemplo n.º 3
0
 public void PlaySound(MafiaSound sound, MafiaBufferContainer buffers)
 {
     if (selectSound)
     {
         sound.Play(buffers.Ue, null);
     }
 }
Exemplo n.º 4
0
 public override void PlaySound(MafiaSound sound, MafiaBufferContainer buffers)
 {
     if (fallSound)
     {
         sound.Play(buffers.Fall, this);
     }
 }
Exemplo n.º 5
0
 public override void PlaySound(MafiaSound sound, MafiaBufferContainer buffers)
 {
     if (animation == 8)
     {
         sound.Play(buffers.Spring, this);
     }
 }
Exemplo n.º 6
0
 public void PlaySound(MafiaSound sound, MafiaBufferContainer buffers)
 {
     if (selectSound)
     {
         sound.Play(buffers.Ue, null);
     }
 }
Exemplo n.º 7
0
 public override void PlaySound(MafiaSound sound, MafiaBufferContainer buffers)
 {
     if (!ShouldPlaySound()) return;
     if (pressSound)
     {
         sound.Play(buffers.Switch, this);
     }
 }
Exemplo n.º 8
0
 public override void PlaySound(MafiaSound sound, MafiaBufferContainer buffers)
 {
     if (!ShouldPlaySound())
     {
         return;
     }
     if (pressSound)
     {
         sound.Play(buffers.Switch, this);
     }
 }
Exemplo n.º 9
0
 public override void PlaySound(MafiaSound sound, MafiaBufferContainer buffers)
 {
     if (!ShouldPlaySound())
     {
         return;
     }
     if (moveCount == 0)
     {
         sound.Play(buffers.Lift, this);
     }
 }
Exemplo n.º 10
0
 public override void PlaySound(MafiaSound sound, MafiaBufferContainer buffers)
 {
     if (animation == 8)
     {
         sound.Play(buffers.Spring, this);
     }
 }
Exemplo n.º 11
0
 public override void PlaySound(MafiaSound sound, MafiaBufferContainer buffers)
 {
     if (fallSound)
     {
         sound.Play(buffers.Fall, this);
     }
 }
Exemplo n.º 12
0
Arquivo: Box.cs Projeto: 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);
     }
 }
Exemplo n.º 13
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);
         }
     }
 }
Exemplo n.º 14
0
Arquivo: Lift.cs Projeto: sinshu/mafia
 public override void PlaySound(MafiaSound sound, MafiaBufferContainer buffers)
 {
     if (!ShouldPlaySound()) return;
     if (moveCount == 0)
     {
         sound.Play(buffers.Lift, this);
     }
 }