public void SetCustomControls(CustomControls newControls) { customControlsMode = customControlsMode != newControls ? newControls : CustomControls.None; switch (customControlsMode) { case CustomControls.Sell: Cursors.SetSellCursor(); break; case CustomControls.Repair: Cursors.SetRepairCursor(); break; case CustomControls.None: Cursors.lockCursorChange = false; Cursors.SetDefaultCursor(); break; } }
public void OnPointerExit(PointerEventData eventData) { Cursors.SetDefaultCursor(); isPointerOn = false; }