public static int get_name(IntPtr L) { if (LuaAPI.IsObject(L, 1)) { UnityEngine.Object o = LuaAPI.ToObj <UnityEngine.Object>(L, 1); LuaAPI.PushString(L, o.name); } return(1); }
static int set_position(IntPtr L) { if (LuaAPI.IsObject(L, 1)) { UnityEngine.Transform trans = LuaAPI.ToObj <Transform>(L, 1); trans.position = ToVector3(L, -1); } return(0); }
static int get_position(IntPtr L) { if (LuaAPI.IsObject(L, 1)) { UnityEngine.Transform trans = LuaAPI.ToObj <Transform>(L, 1); PushVector3(L, trans.position); } return(1); }
static int get_transform(IntPtr L) { if (LuaAPI.IsObject(L, 1)) { UnityEngine.GameObject go = LuaAPI.ToObj <GameObject>(L, 1); LuaAPI.PushObj(L, go.transform); } return(1); }
public static int get_tag(IntPtr L) { if (LuaAPI.IsObject(L, 1)) { UnityEngine.GameObject go = LuaAPI.ToObj <GameObject>(L, 1); LuaAPI.PushString(L, go.tag); } return(1); }
public static int set_name(IntPtr L) { if (LuaAPI.IsObject(L, 1) && LuaAPI.IsString(L, -1)) { UnityEngine.Object o = LuaAPI.ToObj <UnityEngine.Object>(L, 1); string arg0 = LuaAPI.ToStr(L, -1); o.name = arg0; } return(0); }
public static int set_tag(IntPtr L) { if (LuaAPI.IsObject(L, 1) && LuaAPI.IsString(L, -1)) { UnityEngine.GameObject go = LuaAPI.ToObj <GameObject>(L, 1); string arg0 = LuaAPI.ToStr(L, -1); go.tag = arg0; } return(0); }