mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-01 09:39:12 +08:00
chore: Remove deprecations for v1.9.0 (#2749)
Removes everything that was marked as deprecated and that should be removed for v1.9.0.
This commit is contained in:
@ -75,7 +75,7 @@ class TimeScaleExample extends FlameGame
|
||||
}
|
||||
|
||||
class _Chopper extends SpriteAnimationComponent
|
||||
with HasGameRef<TimeScaleExample>, CollisionCallbacks {
|
||||
with HasGameReference<TimeScaleExample>, CollisionCallbacks {
|
||||
_Chopper({
|
||||
super.animation,
|
||||
super.position,
|
||||
@ -110,7 +110,7 @@ class _Chopper extends SpriteAnimationComponent
|
||||
@override
|
||||
void onCollisionStart(Set<Vector2> _, PositionComponent other) {
|
||||
if (other is _Chopper) {
|
||||
gameRef.timeScale = 0.25;
|
||||
game.timeScale = 0.25;
|
||||
}
|
||||
super.onCollisionStart(_, other);
|
||||
}
|
||||
@ -118,7 +118,7 @@ class _Chopper extends SpriteAnimationComponent
|
||||
@override
|
||||
void onCollisionEnd(PositionComponent other) {
|
||||
if (other is _Chopper) {
|
||||
gameRef.timeScale = 1.0;
|
||||
game.timeScale = 1.0;
|
||||
_timer.timer.start();
|
||||
}
|
||||
super.onCollisionEnd(other);
|
||||
|
||||
Reference in New Issue
Block a user