Exemplo n.º 1
0
        public LoopModifier(IModifier <T> modifier, int loopCount)
            : base()
        {
            this.modifier  = modifier;
            this.loopCount = loopCount;
            loop           = 0;
            duration       = (loopCount == LOOP_CONTINUE) ? float.MaxValue : modifier.Duration * loopCount;

            modifier.AddListener(this);
        }