Exemple #1
0
 static int SetFont(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         TextEx           obj  = (TextEx)ToLua.CheckObject <TextEx>(L, 1);
         UnityEngine.Font arg0 = (UnityEngine.Font)ToLua.CheckObject(L, 2, typeof(UnityEngine.Font));
         string           arg1 = ToLua.CheckString(L, 3);
         obj.SetFont(arg0, arg1);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }