private void reStartEffect(EffectRenderObj obj) { if (obj == null) { return; } EffectObjectDescriptor eod = obj.GetDes(); if (eod != null) { eod.reStart(); } obj.setStart(true); }
static int setStart(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); EffectRenderObj obj = (EffectRenderObj)ToLua.CheckObject(L, 1, typeof(EffectRenderObj)); bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.setStart(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
private void resetEffect(EffectRenderObj gameObject) { if (gameObject == null) { return; } EffectObjectDescriptor eod = gameObject.GetDes(); if (eod != null) { eod.setDisable(); } gameObject.resetState(); gameObject.setStart(false); }