/** * Updates the flags for the object to stop following the mouse and fall down */ private void DropObject() { // If the user stops clicking/holding, the current object is referenced and the object was tracking the mouse position if (Input.GetMouseButtonUp(0) && currentObject && currentObject.followMouse) { // Calls the fall command of the object controls script currentObject.Fall(); } }