Exemplo n.º 1
0
        public static void Show(SpriteAtlas spriteAtlas, string defaultSpriteName, OnSpriteSelected callback)
        {
            if (spriteSelector != null)
            {
                spriteSelector.Close();
                spriteSelector = null;
            }
            AtlasSpriteSelector selector = ScriptableWizard.DisplayWizard <AtlasSpriteSelector>("Select a Sprite");

            selector.atlas = spriteAtlas;
            selector.mSelectedSpriteName       = defaultSpriteName;
            selector.mSpriteSeletectedCallback = callback;
        }
Exemplo n.º 2
0
 void OnDisable()
 {
     spriteSelector = null;
 }
Exemplo n.º 3
0
 void OnEnable()
 {
     spriteSelector = this;
 }