예제 #1
0
 static public int constructor(IntPtr l)
 {
     try {
         int argc = LuaDLL.lua_gettop(l);
         UnityEngine.Experimental.Rendering.RenderStateMapping o;
         if (argc == 4)
         {
             System.String a1;
             checkType(l, 3, out a1);
             UnityEngine.Experimental.Rendering.RenderStateBlock a2;
             checkValueType(l, 4, out a2);
             o = new UnityEngine.Experimental.Rendering.RenderStateMapping(a1, a2);
             pushValue(l, true);
             pushValue(l, o);
             return(2);
         }
         else if (argc == 3)
         {
             UnityEngine.Experimental.Rendering.RenderStateBlock a1;
             checkValueType(l, 3, out a1);
             o = new UnityEngine.Experimental.Rendering.RenderStateMapping(a1);
             pushValue(l, true);
             pushValue(l, o);
             return(2);
         }
         else if (argc <= 1)
         {
             o = new UnityEngine.Experimental.Rendering.RenderStateMapping();
             pushValue(l, true);
             pushObject(l, o);
             return(2);
         }
         return(error(l, "New object failed."));
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
예제 #2
0
 public RenderStateMapping(RenderStateBlock stateBlock)
 {
     this = new RenderStateMapping(null, stateBlock);
 }