Exemple #1
0
 private bool isBlockingImportantGUI(Vector2 pos, Vector2 size)
 {
     Rect r = new Rect(pos.x, pos.y, size.x, size.y);
     return r.intersectsImportantGUI();
 }
Exemple #2
0
 private bool isOffScreenOrBlockingImportantGUI(Vector2 pos, Vector2 size)
 {
     Rect r = new Rect(pos.x, pos.y, size.x, size.y);
     if (!r.intersectsImportantGUI()) {
         r = r.clampToScreen();
         return (r.x != pos.x) || (r.y != pos.y);
     } else {
         return true;
     }
 }