Exemplo n.º 1
0
 public static int  obj_new1(long L)
 {
     try
     {
         string     arg0 = FCLibHelper.fc_get_string_a(L, 0);
         GameObject obj  = new GameObject(arg0);
         long       nPtr = FCGetObj.PushNewObj <GameObject>(obj);
         long       ret  = FCLibHelper.fc_get_return_ptr(L);
         FCLibHelper.fc_set_value_intptr(ret, nPtr);
     }
     catch (Exception e)
     {
         Debug.LogException(e);
     }
     return(0);
 }
Exemplo n.º 2
0
 public static int  obj_new1(long L)
 {
     try
     {
         int arg0 = FCLibHelper.fc_get_int(L, 0);
         int arg1 = FCLibHelper.fc_get_int(L, 1);
         UnityEngine.Texture2D obj = new UnityEngine.Texture2D(arg0, arg1);
         long nPtr = FCGetObj.PushNewObj <UnityEngine.Texture2D>(obj);
         long ret  = FCLibHelper.fc_get_return_ptr(L);
         FCLibHelper.fc_set_value_wrap_objptr(ret, nPtr);
     }
     catch (Exception e)
     {
         Debug.LogException(e);
     }
     return(0);
 }
Exemplo n.º 3
0
 public static int  obj_new1(long L)
 {
     try
     {
         string arg0 = FCLibHelper.fc_get_string_a(L, 0);
         UnityEngine.GameObject obj = new UnityEngine.GameObject(arg0);
         long nPtr = FCGetObj.PushNewObj <UnityEngine.GameObject>(obj);
         long ret  = FCLibHelper.fc_get_return_ptr(L);
         long VM   = FCLibHelper.fc_get_vm_ptr(L);
         FCLibHelper.fc_set_value_wrap_objptr(VM, ret, nPtr);
     }
     catch (Exception e)
     {
         Debug.LogException(e);
     }
     return(0);
 }
Exemplo n.º 4
0
 public static int  obj_new3(long L)
 {
     try
     {
         string        arg0 = FCLibHelper.fc_get_string_a(L, 0);
         System.Type[] arg1 = null;
         arg1 = FCCustomParam.GetArray(ref arg1, L, 1);
         GameObject obj  = new GameObject(arg0, arg1);
         long       nPtr = FCGetObj.PushNewObj <GameObject>(obj);
         long       ret  = FCLibHelper.fc_get_return_ptr(L);
         FCLibHelper.fc_set_value_intptr(ret, nPtr);
     }
     catch (Exception e)
     {
         Debug.LogException(e);
     }
     return(0);
 }
Exemplo n.º 5
0
 public static int  obj_new2(long L)
 {
     try
     {
         int arg0 = FCLibHelper.fc_get_int(L, 0);
         int arg1 = FCLibHelper.fc_get_int(L, 1);
         UnityEngine.TextureFormat arg2 = (UnityEngine.TextureFormat)(FCLibHelper.fc_get_int(L, 2));
         bool      arg3 = FCLibHelper.fc_get_bool(L, 3);
         Texture2D obj  = new Texture2D(arg0, arg1, arg2, arg3);
         long      nPtr = FCGetObj.PushNewObj <Texture2D>(obj);
         long      ret  = FCLibHelper.fc_get_return_ptr(L);
         FCLibHelper.fc_set_value_intptr(ret, nPtr);
     }
     catch (Exception e)
     {
         Debug.LogException(e);
     }
     return(0);
 }