Пример #1
0
    // Update is called once per frame
    void Update()
    {
        if (!Valid)
        {
            return;
        }

        if (!View.Visible)
        {
            return;
        }

        // Handle mouse input

                #if UNITY_EDITOR || !UNITY_IPHONE
        int x = (int)windowRect.x + 4;
        int y = (int)windowRect.y + 4 + toolbarHeight;

        View.OnGUIMouse(x, y);
                #endif
    }