예제 #1
0
    public override void execute(VGDLSprite sprite1, VGDLSprite sprite2, VGDLGame game)
    {
        var timeEffect = new VGDLTimeEffect(this);

        timeEffect.planExecution(game);
        game.addTimeEffect(timeEffect);
    }
예제 #2
0
    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
    }
예제 #3
0
 public void addTimeEffect(VGDLTimeEffect timeEffect)
 {
     timeEffects.Add(timeEffect);
 }