WindowHandler.IsInGUI C# (CSharp) Method

IsInGUI() public method

public IsInGUI ( Vector3 point ) : bool
point Vector3
return bool
    public bool IsInGUI(Vector3 point)
    {
        point = VectorHelper.ScreenToGUI(point);
        bool inGUI = false;
        // dialogue positions
        for(int i=0; i<this.shown.Length; i++)
        {
            if(VectorHelper.InGUIRect(point, this.shown[i].boxBounds))
            {
                inGUI = true;
                break;
            }
        }
        // HUD
        if(!inGUI)
        {
            for(int i=0; i<GameHandler.GetLevelHandler().hud.Length; i++)
            {
                if(GameHandler.GetLevelHandler().hud[i].IsInHUD(point))
                {
                    inGUI = true;
                    break;
                }
            }
        }
        return inGUI;
    }