static public int constructor(IntPtr l)
 {
     try {
                     #if DEBUG
         var    method     = System.Reflection.MethodBase.GetCurrentMethod();
         string methodName = GetMethodName(method);
                     #if UNITY_5_5_OR_NEWER
         UnityEngine.Profiling.Profiler.BeginSample(methodName);
                     #else
         Profiler.BeginSample(methodName);
                     #endif
                     #endif
         UnityEngine.U2D.SpriteAtlasManager o;
         o = new UnityEngine.U2D.SpriteAtlasManager();
         pushValue(l, true);
         pushValue(l, o);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
             #if DEBUG
     finally {
                     #if UNITY_5_5_OR_NEWER
         UnityEngine.Profiling.Profiler.EndSample();
                     #else
         Profiler.EndSample();
                     #endif
     }
             #endif
 }
Exemple #2
0
 static public int constructor(IntPtr l)
 {
     try {
         UnityEngine.U2D.SpriteAtlasManager o;
         o = new UnityEngine.U2D.SpriteAtlasManager();
         pushValue(l, true);
         pushValue(l, o);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
        private static bool RequestAtlas(string tag)
        {
            bool flag = SpriteAtlasManager.atlasRequested != null;
            bool result;

            if (flag)
            {
                SpriteAtlasManager.atlasRequested(tag, new Action <SpriteAtlas>(SpriteAtlasManager.Register));
                result = true;
            }
            else
            {
                result = false;
            }
            return(result);
        }