static int GetDes(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); EffectRenderObj obj = (EffectRenderObj)ToLua.CheckObject(L, 1, typeof(EffectRenderObj)); EffectObjectDescriptor o = obj.GetDes(); ToLua.PushObject(L, o); return(1); } 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); }
private void reStartEffect(EffectRenderObj obj) { if (obj == null) { return; } EffectObjectDescriptor eod = obj.GetDes(); if (eod != null) { eod.reStart(); } obj.setStart(true); }
public EffectController(EffectRenderObj render) { _render = render; eod = _render.GetDes(); // eod.RecordState(); }