Exemple #1
0
 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();
 }
Exemple #2
0
 private void OnDisable()
 {
     if (overObject == base.gameObject)
     {
         overObject = null;
         Cursors.SwitchToDefaultCursor();
     }
 }
Exemple #3
0
        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();
        }
Exemple #4
0
 public void OnPointerExit(PointerEventData eventData)
 {
     Cursors.SwitchToDefaultCursor();
 }