mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-03 20:36:31 +08:00
Simplify BaseGame interactions
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user