public EffectGameComponent AddEffect(String sheetName, Vector2 position) { EffectGameComponent effect = new EffectGameComponent(this, sheetName); effect.Position = position; Components.Add(effect); return(effect); }
public EffectGameComponent AddEffect(String sheetName, Vector2 position, double secondsPerFrame, int maxLoops) { EffectGameComponent effect = AddEffect(sheetName, position); effect.SecondsPerFrame = secondsPerFrame; effect.MaxLoops = maxLoops; return(effect); }
public EffectGameComponent AddEffect(String sheetName, Vector2 position) { EffectGameComponent effect = new EffectGameComponent(this, sheetName); effect.Position = position; Components.Add(effect); return effect; }