Exemple #1
0
 static public void FastSetter(this UnityEngine.Rigidbody o, string propertyName, UnityEngine.CollisionDetectionMode value)
 {
     switch (propertyName)
     {
     case "collisionDetectionMode":
         o.collisionDetectionMode = value; return;
     }
     LBoot.LogUtil.Error("UnityEngine.Rigidbody no Setter Found : " + propertyName);
 }
Exemple #2
0
        public static UnityCollisionDetectionMode GetPatchApplied(this UnityCollisionDetectionMode _this, MRECollisionDetectionMode value)
        {
            var detectionMode = (UnityCollisionDetectionMode)Enum.Parse(typeof(UnityCollisionDetectionMode), value.ToString());

            if (!_this.Equals(detectionMode))
            {
                _this = detectionMode;
            }

            return(_this);
        }
 static void Rigidbody_collisionDetectionMode(JSVCall vc)
 {
     if (vc.bGet)
     {
         UnityEngine.Rigidbody _this = (UnityEngine.Rigidbody)vc.csObj;
         var result = _this.collisionDetectionMode;
         JSApi.setEnum((int)JSApi.SetType.Rval, (int)result);
     }
     else
     {
         UnityEngine.CollisionDetectionMode arg0 = (UnityEngine.CollisionDetectionMode)JSApi.getEnum((int)JSApi.GetType.Arg);
         UnityEngine.Rigidbody _this             = (UnityEngine.Rigidbody)vc.csObj;
         _this.collisionDetectionMode = arg0;
     }
 }