private void Awake() { Cursors.InitDefaultCursor(this.regularCursor, this.regularCursorHotspot); Cursors.InitCursor(CursorType.HAND, this.handCursor, this.handCursorHotspot); Cursors.InitCursor(CursorType.INPUT, this.inputCursor, this.inputCursorHotspot); Cursors.SwitchToDefaultCursor(); }
private void OnDisable() { if (overObject == base.gameObject) { overObject = null; Cursors.SwitchToDefaultCursor(); } }
private void UnhighlightLink(int linkIndex) { TMP_LinkInfo info = this.tmpText.textInfo.linkInfo[linkIndex]; string[] textArray1 = new string[] { "<u><link=", info.GetLinkID(), ">", info.GetLinkText(), "</link></u>" }; string newValue = string.Concat(textArray1); this.tmpText.text = this.tmpText.text.Replace(this.GetColoredLinkText(newValue), newValue); Cursors.SwitchToDefaultCursor(); }
public void OnPointerExit(PointerEventData eventData) { Cursors.SwitchToDefaultCursor(); }