Tuple <Texture2D, Vector2> GetCursorValues(CursorScriptableObject inputCursorScriptableObject) { return(new Tuple <Texture2D, Vector2>(inputCursorScriptableObject.CursorTexture, inputCursorScriptableObject.HotSpot)); }
public void OnEnter() { currentCursor = cursorManager.Cursors.FirstOrDefault(x => x.name == "Default"); UnityEngine.Cursor.SetCursor(cursorManager.GetCursorValues(currentCursor).Item1, cursorManager.GetCursorValues(currentCursor).Item2, CursorMode.Auto); cursorManager.OnRightClick += OnRightClickHandler; }