예제 #1
0
    private void reStartEffect(EffectRenderObj obj)
    {
        if (obj == null)
        {
            return;
        }

        EffectObjectDescriptor eod = obj.GetDes();

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

        if (eod != null)
        {
            eod.setDisable();
        }
        gameObject.resetState();
        gameObject.setStart(false);
    }