public void Update(float dt) { if (m_kLoaded.Count > 0) { AssetEntity _entity = m_kLoaded.Dequeue(); _entity.OnLoaded(); } }
static int OnLoaded(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); AssetEntity obj = (AssetEntity)ToLua.CheckObject <AssetEntity>(L, 1); obj.OnLoaded(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }