I've been working on a 3d platformer game (in unity)

Current Events

Unity has a built-in function for comparing floats
https://docs.unity3d.com/ScriptReference/Mathf.Approximately.html
THIS IS WHAT I HATE A BOUT EVREY WEBSITE!! THERES SO MUCH PEOPLE READING AND POSTING STUIPED STUFF