示例#1
0
 public static void ShowNotice(string mes)
 {
     if (instance)
     {
         instance.Show(mes, ToastType.Notification);
     }
     else
     {
         Debug.LogWarning("[UIToast]  instance NULL");
     }
 }
示例#2
0
 static int Show(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         string arg0 = ToLua.CheckString(L, 1);
         UIToast.Show(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }