public override void execute(VGDLSprite sprite1, VGDLSprite sprite2, VGDLGame game) { var timeEffect = new VGDLTimeEffect(this); timeEffect.planExecution(game); game.addTimeEffect(timeEffect); }
public VGDLTimeEffect(VGDLTimeEffect copyFrom) : this() { timer = copyFrom.timer; repeating = copyFrom.repeating; targetType = copyFrom.targetType; isNative = copyFrom.isNative; effectDelegate = copyFrom.effectDelegate; //nextExecution not copied, because this() runs planExecution //And we also run it from addTimer }
public void addTimeEffect(VGDLTimeEffect timeEffect) { timeEffects.Add(timeEffect); }