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.DefaultExecutionOrder o;
         System.Int32 a1;
         checkType(l, 2, out a1);
         o = new UnityEngine.DefaultExecutionOrder(a1);
         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
 }
 static public int get_order(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.DefaultExecutionOrder self = (UnityEngine.DefaultExecutionOrder)checkSelf(l);
         pushValue(l, true);
         pushValue(l, self.order);
         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
 }
 static public int get_order(IntPtr l)
 {
     try {
         UnityEngine.DefaultExecutionOrder self = (UnityEngine.DefaultExecutionOrder)checkSelf(l);
         pushValue(l, true);
         pushValue(l, self.order);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int constructor(IntPtr l)
 {
     try {
         UnityEngine.DefaultExecutionOrder o;
         System.Int32 a1;
         checkType(l, 2, out a1);
         o = new UnityEngine.DefaultExecutionOrder(a1);
         pushValue(l, true);
         pushValue(l, o);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
        private static int GetDefaultExecutionOrderFor(Type klass)
        {
            DefaultExecutionOrder customAttributeOfType = AttributeHelperEngine.GetCustomAttributeOfType <DefaultExecutionOrder>(klass);
            int result;

            if (customAttributeOfType == null)
            {
                result = 0;
            }
            else
            {
                result = customAttributeOfType.order;
            }
            return(result);
        }
예제 #6
0
        private static int GetDefaultExecutionOrderFor(System.Type klass)
        {
            DefaultExecutionOrder customAttributeOfType = GetCustomAttributeOfType <DefaultExecutionOrder>(klass);

            return(customAttributeOfType?.order);
        }