Beispiel #1
0
 public void setCursor(string cursor)
 {
     if (cursor != current_cursor)
     {
         Cursor.SetCursor(guiprovider.getCursor(cursor), new Vector2(0f, 0f), CursorMode.Auto);
         current_cursor = cursor;
     }
 }
 public void SetCursor(string cursor)
 {
     if (cursor != current_cursor)
     {
         if (!locked)
         {
             var cursorToSet = guiprovider.getCursor(cursor);
             if (cursor != null)
             {
                 Cursor.SetCursor(cursorToSet, new Vector2(0f, 0f), CursorMode.Auto);
             }
             else
             {
                 Debug.Log("Could not set cursor with name: " + cursor);
             }
         }
         current_cursor = cursor;
     }
 }