cursorMapping getCursorMapping(cursorType _type) { foreach (cursorMapping mapping in cursorMappings) { if (mapping.type == _type) { return(mapping); } } return(cursorMappings[0]); }
void SetCursor(cursorType type) { cursorMapping mapping = getCursorMapping(type); Cursor.SetCursor(mapping.texture, mapping.hotspot, CursorMode.Auto); }