static int StartCoroutine_Auto(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 2); FSMBase obj = LuaScriptMgr.GetNetObject <FSMBase>(L, 1); IEnumerator arg0 = LuaScriptMgr.GetNetObject <IEnumerator>(L, 2); Coroutine o = obj.StartCoroutine_Auto(arg0); LuaScriptMgr.PushObject(L, o); return(1); }