Ejemplo n.º 1
0
 static public void FastSetter(this UnityEngine.Rigidbody o, string propertyName, UnityEngine.RigidbodyConstraints value)
 {
     switch (propertyName)
     {
     case "constraints":
         o.constraints = value; return;
     }
     LBoot.LogUtil.Error("UnityEngine.Rigidbody no Setter Found : " + propertyName);
 }
Ejemplo n.º 2
0
 static void Rigidbody_constraints(JSVCall vc)
 {
     if (vc.bGet)
     {
         UnityEngine.Rigidbody _this = (UnityEngine.Rigidbody)vc.csObj;
         var result = _this.constraints;
         JSApi.setEnum((int)JSApi.SetType.Rval, (int)result);
     }
     else
     {
         UnityEngine.RigidbodyConstraints arg0  = (UnityEngine.RigidbodyConstraints)JSApi.getEnum((int)JSApi.GetType.Arg);
         UnityEngine.Rigidbody            _this = (UnityEngine.Rigidbody)vc.csObj;
         _this.constraints = arg0;
     }
 }
    public void In(
        [FriendlyName("Value", "The variable(s) you wish to use to set the target's value.")]
        UnityEngine.RigidbodyConstraints[] Value,

        [FriendlyName("Target", "The Target variable you wish to set.")]
        out UnityEngine.RigidbodyConstraints Target
        )
    {
        Target = RigidbodyConstraints.None;

        foreach (UnityEngine.RigidbodyConstraints c in Value)
        {
            Target |= c;
        }
    }