/// <summary> /// Triggers the sound of the key landing /// </summary> public void OnKeyLand() { if (RecoilCamera.IsVisible(m_collider)) { AudioManager.instance.PlaySound(AudioName.KeyLands); } }
/// <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); } }