mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-01 19:12:31 +08:00
Preventing errors caused by the premature use of size property on game (#659)
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user