Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void OnGUI () {
- if (sliderRect.Contains (Event.current.mousePosition)) {
- // if (sliderRect.Contains (Input.mousePosition)) {
- overGUI = true;
- } else {
- overGUI = false;
- }
- }
- void Update () {
- if (!overGUI) {
- DoSomething ();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement