public void OnAniEvent(int para) { if (null == m_renderObj) { m_renderObj = gameObject.GetComponent <RenderObj>(); } if (null != m_renderObj) { m_renderObj.OnAniEvent(); } }
static int OnAniEvent(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); WCG.RenderObj obj = (WCG.RenderObj)ToLua.CheckObject <WCG.RenderObj>(L, 1); obj.OnAniEvent(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }