/// <summary> /// Add an effect to this sprite /// </summary> /// <param name="startTick">When should the effect begin in ms since Start()</param> /// <param name="duration">For how many milliseconds should the effect continue. /// 0 means the effect will be applied only once.</param> /// <param name="effect">The effect to be applied</param> public void Add(long startTick, long duration, IEffect effect) { EffectControlBlock cb = new EffectControlBlock(startTick, duration, effect); effect.Sprite = this; this.ControlBlocks.Add(cb); }