Exemple #1
0
 static int resetState(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         EffectRenderObj obj = (EffectRenderObj)ToLua.CheckObject(L, 1, typeof(EffectRenderObj));
         obj.resetState();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Exemple #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);
    }