void OnTriggerEnter2D(Collider2D collider) { if (m_ambientType == SurfaceType.Water) { FmodManager.instance.PlaySoundOneShot(m_hitSurfaceSound.eventPath, collider.transform.position); } if (collider.CompareTag("Player")) { m_movementComponent.CheckSurface(m_ambientType); m_AmbientComponent.ChangeAmbientParameter((int)m_eventNameToChange, (int)m_EnterparameterValue); } }