예제 #1
0
 cursorMapping getCursorMapping(cursorType _type)
 {
     foreach (cursorMapping mapping in cursorMappings)
     {
         if (mapping.type == _type)
         {
             return(mapping);
         }
     }
     return(cursorMappings[0]);
 }
예제 #2
0
        void SetCursor(cursorType type)
        {
            cursorMapping mapping = getCursorMapping(type);

            Cursor.SetCursor(mapping.texture, mapping.hotspot, CursorMode.Auto);
        }