Entitas-Simple-Movement-Unity-Example icon indicating copy to clipboard operation
Entitas-Simple-Movement-Unity-Example copied to clipboard

Broken tutorial

Open akoolenbourke opened this issue 6 years ago • 1 comments

Hi guys. The tutorial is broken at the moment, with the most recent release.

When getting to the part to add the AddViewSystem, pasting the code in gives an error in this function

protected override Collector<GameEntity> GetTrigger(IContext<GameEntity> context)
    {
        return _context.CreateCollector(GameMatcher.Sprite);
    }

The return type for GetTrigger is wrong and following that CreateCollector is erroring because of it. Changing The return type to ICollector from Collector stops errors.

Additionally, the go.Link call has an error "No Overload for Link takes 2 parameters". Removing the second parameter, _context fixes the errors

akoolenbourke avatar Mar 13 '19 01:03 akoolenbourke

Thanks, yes these errors reflect changes in the Entitias API that were introduced after the tutorial was posted. I'll make some changes now.

NOTE I'm not maintaining the repo, just the readme. Consider the code in the repo out of date.

FNGgames avatar Mar 13 '19 12:03 FNGgames