static int StopAllCoroutines(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 1); FSMBase obj = LuaScriptMgr.GetNetObject <FSMBase>(L, 1); obj.StopAllCoroutines(); return(0); }