Exemplo n.º 1
0
 public void LeaveGalleryScreen(GalleryManager.GalleryCloseCallback callback)
 {
     if (!(galleryManager == null))
     {
         inputHandler = null;
         galleryManager.Close(delegate
         {
             PopStateStack();
             ExecuteActions();
             galleryManager = null;
             if (callback != null)
             {
                 callback();
             }
         });
     }
 }
        private IEnumerator DoClose(GalleryManager.GalleryCloseCallback callback)
        {
            yield return(null);

            yield return(null);

            this.GalleryHeader.PlayReverse();
            this.GalleryPanel.PlayReverse();
            this.Background.PlayReverse();
            yield return(new WaitForSeconds(0.3f));

            if (callback != null)
            {
                callback();
            }
            UnityEngine.Object.Destroy(base.gameObject);
            yield break;
        }