Example #1
0
 static int SetReachedCallback(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         PolyNavAgent         obj  = (PolyNavAgent)ToLua.CheckObject <PolyNavAgent>(L, 1);
         System.Action <bool> arg0 = (System.Action <bool>)ToLua.CheckDelegate <System.Action <bool> >(L, 2);
         obj.SetReachedCallback(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }