/// <summary> /// Override the cursor with the specified sprite. /// </summary> static public void Set(UIAtlas atlas, string sprite) { if (instance != null && instance.mSprite) { instance.mSprite.atlas = atlas; instance.mSprite.spriteName = sprite; instance.mSprite.MakePixelPerfect(); instance.Update(); } }
public static void Set(UIAtlas atlas, string sprite) { if (mInstance != null) { mInstance.mSprite.atlas = atlas; mInstance.mSprite.spriteName = sprite; mInstance.mSprite.MakePixelPerfect(); mInstance.Update(); } }