예제 #1
0
 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));
     }
 }
예제 #2
0
    private void resetEffect(EffectRenderObj gameObject)
    {
        if (gameObject == null)
        {
            return;
        }
        EffectObjectDescriptor eod = gameObject.GetDes();

        if (eod != null)
        {
            eod.setDisable();
        }
        gameObject.resetState();
        gameObject.setStart(false);
    }
예제 #3
0
    private void reStartEffect(EffectRenderObj obj)
    {
        if (obj == null)
        {
            return;
        }

        EffectObjectDescriptor eod = obj.GetDes();

        if (eod != null)
        {
            eod.reStart();
        }
        obj.setStart(true);
    }
예제 #4
0
 public EffectController(EffectRenderObj render)
 {
     _render = render;
     eod     = _render.GetDes();
     //           eod.RecordState();
 }