Simplify BaseGame interactions

This commit is contained in:
Lukas Klingsbo
2020-11-14 14:34:39 +01:00
parent 64068ebad9
commit 0135f93493
4 changed files with 27 additions and 28 deletions

View File

@ -193,7 +193,7 @@ abstract class PositionComponent extends Component {
void addChild(Game gameRef, Component c) {
if (gameRef is BaseGame) {
gameRef.preAdd(c);
gameRef.prepare(c);
}
_children.add(c);
}