public void OnCollision(GameObject other) { if (other != null) { Debug.Log("Player Collide With Object:" + other.name); if (OnAir) { SoundMananger.PlayLandedSFX(); } } //collide = true; OnAir = false; shortjump = false; GotoState(KeyMapper.Idle + (int)m_SwimState); Debug.Log("OnCollision:" + m_SwimState); diving = false; }