public void Awake() { BrowserCursor = new BrowserCursor(); BrowserCursor.cursorChange += CursorUpdated; InputSettings = new BrowserInputSettings(); }
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>(); }
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; } }