コード例 #1
0
        public void Awake()
        {
            BrowserCursor = new BrowserCursor();
            BrowserCursor.cursorChange += CursorUpdated;

            InputSettings = new BrowserInputSettings();
        }
コード例 #2
0
 protected void Awake()
 {
     BrowserCursor               = new BrowserCursor();
     InputSettings               = new BrowserInputSettings();
     browser                     = GetComponent <Browser>();
     myImage                     = GetComponent <RawImage>();
     browser.afterResize        += UpdateTexture;
     browser.UIHandler           = this;
     BrowserCursor.cursorChange += delegate
     {
         SetCursor(BrowserCursor);
     };
     rTransform = GetComponent <RectTransform>();
 }
コード例 #3
0
        public virtual void Awake()
        {
            BrowserCursor = new BrowserCursor();
            BrowserCursor.cursorChange += CursorUpdated;

            InputSettings = new BrowserInputSettings();

            browser           = GetComponent <Browser>();
            browser.UIHandler = this;


            onHandlePointers += OnHandlePointers;

            if (disableMouseEmulation)
            {
                Input.simulateMouseWithTouches = false;
            }
        }