public void  SetMuscle(MuscleHandle muscle, float value)
 {
     ThrowIfInvalid(); InternalSetMuscle(muscle, value);
 }
 public float GetMuscle(MuscleHandle muscle)
 {
     ThrowIfInvalid(); return(InternalGetMuscle(muscle));
 }
 private extern float InternalGetMuscle(MuscleHandle muscle);
 private extern void InternalSetMuscle(MuscleHandle muscle, float value);
Exemple #5
0
 static public int constructor(IntPtr l)
 {
     try {
         int argc = LuaDLL.lua_gettop(l);
         UnityEngine.Experimental.Animations.MuscleHandle o;
         if (matchType(l, "ctor__HumanPartDof__LegDof", argc, 2, typeof(UnityEngine.HumanPartDof), typeof(UnityEngine.LegDof)))
         {
             UnityEngine.HumanPartDof a1;
             checkEnum(l, 3, out a1);
             UnityEngine.LegDof a2;
             checkEnum(l, 4, out a2);
             o = new UnityEngine.Experimental.Animations.MuscleHandle(a1, a2);
             pushValue(l, true);
             pushValue(l, o);
             return(2);
         }
         else if (matchType(l, "ctor__HumanPartDof__ArmDof", argc, 2, typeof(UnityEngine.HumanPartDof), typeof(UnityEngine.ArmDof)))
         {
             UnityEngine.HumanPartDof a1;
             checkEnum(l, 3, out a1);
             UnityEngine.ArmDof a2;
             checkEnum(l, 4, out a2);
             o = new UnityEngine.Experimental.Animations.MuscleHandle(a1, a2);
             pushValue(l, true);
             pushValue(l, o);
             return(2);
         }
         else if (matchType(l, "ctor__HumanPartDof__FingerDof", argc, 2, typeof(UnityEngine.HumanPartDof), typeof(UnityEngine.FingerDof)))
         {
             UnityEngine.HumanPartDof a1;
             checkEnum(l, 3, out a1);
             UnityEngine.FingerDof a2;
             checkEnum(l, 4, out a2);
             o = new UnityEngine.Experimental.Animations.MuscleHandle(a1, a2);
             pushValue(l, true);
             pushValue(l, o);
             return(2);
         }
         else if (matchType(l, "ctor__BodyDof", argc, 2, typeof(UnityEngine.BodyDof)))
         {
             UnityEngine.BodyDof a1;
             checkEnum(l, 3, out a1);
             o = new UnityEngine.Experimental.Animations.MuscleHandle(a1);
             pushValue(l, true);
             pushValue(l, o);
             return(2);
         }
         else if (matchType(l, "ctor__HeadDof", argc, 2, typeof(UnityEngine.HeadDof)))
         {
             UnityEngine.HeadDof a1;
             checkEnum(l, 3, out a1);
             o = new UnityEngine.Experimental.Animations.MuscleHandle(a1);
             pushValue(l, true);
             pushValue(l, o);
             return(2);
         }
         else if (argc <= 1)
         {
             o = new UnityEngine.Experimental.Animations.MuscleHandle();
             pushValue(l, true);
             pushObject(l, o);
             return(2);
         }
         return(error(l, "New object failed."));
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }