Esempio n. 1
0
        public static void Show(SpritePack spritePack, Callback callback, bool closeWhenSelected, string selectedSprite)
        {
            if (_instance != null)
            {
                _instance.Close();
                _instance = null;
            }

            var comp = ScriptableWizard.DisplayWizard <SpritePackSpriteSelector>("Select a Sprite");

            comp._spritePack        = spritePack;
            comp._callback          = callback;
            comp._selectedSprite    = selectedSprite;
            comp._closeWhenSelected = closeWhenSelected;
            comp._partialSprite     = string.Empty;
        }
Esempio n. 2
0
 private void OnEnable()
 {
     _sprAtlasPack = (SpritePack)target;
     _sourceDest   = _sprAtlasPack.ObjectsOrFolderPath.ToArray();
 }