예제 #1
0
    public void PlayQueued(string soundId)
    {
        SoundEffectController sndController = this[soundId];

        if (sndController != null)
        {
            sndController.PlayQueued();
        }
        else
        {
            Debug.LogWarning("[SoundManager] Can't find sound with id: " + soundId + " for PlayQueued!");
        }
    }
예제 #2
0
 public void OnStartNormalTileDestroySndEvent(NormalTile tile, bool isSingleDestroyed)
 {
     if (!isSingleDestroyed)
     {
         sndTileMatch.PlayQueued();
     }
     else
     {
         // Use another sound effect controller with different properties when multiple tiles will be destroyed one by one
         // to ensure that the next destroy sound won't stop the previous destroy sound (given the impression of a "machine-gun" sound play sequence).
         sndTileDestroy.PlayQueued();
     }
 }
예제 #3
0
 public void OnDropTileExited(DropTile dropTile)
 {
     sndDropTileExit.PlayQueued();
 }
예제 #4
0
 public void OnLockedTileDestroyedSndEvent(LockedTile lockedTile)
 {
     sndLockedTileDestroy.PlayQueued();
 }
예제 #5
0
 public void OnFrostedPieceLayerDestroyedSndEvent(LayeredBoardPiece boardPiece)
 {
     sndFrostPieceLayerDestroy.PlayQueued();
 }
예제 #6
0
 public void OnSnowTileLayerDestroyedSndEvent(SnowTile snowTile)
 {
     sndSnowTileLayerDestroy.PlayQueued();
 }
예제 #7
0
 public void OnStartTileImpactBounceSndEvent(NormalTile tile)
 {
     // Plays from 3 random audio clips setup on the sound effect
     sndTileDropImpact.PlayQueued();
 }
예제 #8
0
 public void OnStartDirectionalTileSndEvent(DirectionalDestroyTile directionalDestroyTile)
 {
     sndDirectionalTileActivate.PlayQueued();
 }