コード例 #1
0
 /// <summary>
 /// Triggers the sound of the key landing
 /// </summary>
 public void OnKeyLand()
 {
     if (RecoilCamera.IsVisible(m_collider))
     {
         AudioManager.instance.PlaySound(AudioName.KeyLands);
     }
 }
コード例 #2
0
 /// <summary>
 /// Triggers the sound of the key landing
 /// </summary>
 public void OnBlockLands()
 {
     // Only if they are visible on screen then play the sound
     if (RecoilCamera.IsVisible(m_collider))
     {
         AudioManager.instance.PlaySound(AudioName.SpikeBlockLands);
     }
 }