Exemple #1
0
    public override void execute(VGDLSprite sprite1, VGDLSprite sprite2, VGDLGame game)
    {
        if (sprite1 == null)
        {
            throw new ArgumentException("1st sprite can't be EOS with spawn interaction.");
        }

        if (!sprite1.is_disabled())
        {
            VGDLSprite newSprite = game.addSprite(stype, sprite1.getPosition());
            doTransformTo(newSprite, sprite1, sprite2, game);
        }
    }