mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-03 04:18:25 +08:00
Pause effects
This commit is contained in:
@ -16,6 +16,11 @@ abstract class ComponentEffect<T extends Component> {
|
||||
|
||||
bool _isDisposed = false;
|
||||
bool get isDisposed => _isDisposed;
|
||||
|
||||
bool _isPaused = false;
|
||||
bool get isPaused => _isPaused;
|
||||
void resume() => _isPaused = false;
|
||||
void pause() => _isPaused = true;
|
||||
|
||||
/// If the animation should first follow the initial curve and then follow the
|
||||
/// curve backwards
|
||||
|
||||
Reference in New Issue
Block a user