Preventing errors caused by the premature use of size property on game (#659)

This commit is contained in:
Erick
2021-02-15 19:07:58 -03:00
committed by GitHub
parent 12cafb1da3
commit 0d4df1acc2
8 changed files with 46 additions and 16 deletions

View File

@ -28,6 +28,7 @@ void effectTest(
final Callback callback = Callback();
effect.onComplete = callback.call;
final BaseGame game = BaseGame();
game.onResize(Vector2.all(200));
game.add(component);
component.addEffect(effect);
final double duration = effect.iterationTime;