private void Update() { Vector3 vector = Camera.main.ScreenToWorldPoint(KInputManager.GetMousePos()); if ((Object)OverlayScreen.Instance == (Object)null || vector.x < 0f || vector.x > Grid.WidthInMeters || vector.y < 0f || vector.y > Grid.HeightInMeters) { drawer.SetEnabled(false); } else { bool enabled = PlayerController.Instance.ActiveTool.ShowHoverUI(); drawer.SetEnabled(enabled); } }