예제 #1
0
 Tuple <Texture2D, Vector2> GetCursorValues(CursorScriptableObject inputCursorScriptableObject)
 {
     return(new Tuple <Texture2D, Vector2>(inputCursorScriptableObject.CursorTexture, inputCursorScriptableObject.HotSpot));
 }
예제 #2
0
 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;
 }