public static int PushTry(IntPtr ptr) { LuaState state = LuaState.Get(ptr); if (!state.IsMainThread()) { Logger.LogError("Can't call lua function in bg thread"); return(0); } return(state.PushTry()); }