Ejemplo n.º 1
0
 public static int get_tag(System.IntPtr L)
 {
     if (true && LuaAPI.IsObject(L, 1))
     {
         UnityEngine.Component arg0 = (UnityEngine.Component)LuaCallback.ToObject(L, 1);
         System.String         res  = arg0.tag;
         LuaCallback.PushString(L, res);
         return(1);
     }
     return(0);
 }
Ejemplo n.º 2
0
    public static int ToString(System.IntPtr L)
    {
        int nargs = LuaAPI.GetTop(L);

        if (nargs == 1 && LuaAPI.IsObject(L, 1))
        {
            UnityEngine.Object arg0 = (UnityEngine.Object)LuaCallback.ToObject(L, 1);
            System.String      res  = arg0.ToString();
            LuaCallback.PushString(L, res);
            return(1);
        }
        return(0);
    }