static public int GetHumanoidBodyPartActive(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.AvatarMask         self = (UnityEngine.AvatarMask)checkSelf(l);
         UnityEngine.AvatarMaskBodyPart a1;
         a1 = (UnityEngine.AvatarMaskBodyPart)LuaDLL.luaL_checkinteger(l, 2);
         var ret = self.GetHumanoidBodyPartActive(a1);
         pushValue(l, true);
         pushValue(l, ret);
         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
 }
Esempio n. 2
0
 internal void Copy(AvatarMask other)
 {
     for (AvatarMaskBodyPart avatarMaskBodyPart = AvatarMaskBodyPart.Root; avatarMaskBodyPart < AvatarMaskBodyPart.LastBodyPart; avatarMaskBodyPart++)
     {
         SetHumanoidBodyPartActive(avatarMaskBodyPart, other.GetHumanoidBodyPartActive(avatarMaskBodyPart));
     }
     transformCount = other.transformCount;
     for (int i = 0; i < other.transformCount; i++)
     {
         SetTransformPath(i, other.GetTransformPath(i));
         SetTransformActive(i, other.GetTransformActive(i));
     }
 }
 static public int GetHumanoidBodyPartActive(IntPtr l)
 {
     try {
         UnityEngine.AvatarMask         self = (UnityEngine.AvatarMask)checkSelf(l);
         UnityEngine.AvatarMaskBodyPart a1;
         checkEnum(l, 2, out a1);
         var ret = self.GetHumanoidBodyPartActive(a1);
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }