Class ETAProgressBar
A UI progress bar component that smoothly update its progress by using spring physics.
public class ETAProgressBar : MonoBehaviour, IHandle<LevelProgressionMessage>
Inheritance
Implements
IHandle<LevelProgressionMessage>
Remarks
This component listening to event aggregator. When a LevelProgressionMessage is published, the LevelProgressionMessage) method is invoked, and the progress bar will update.
Methods
Handle(LevelProgressionMessage)
Processes the received message and applies its payload to this subscriber's state.
Activates the progress bar UI and updates the target progress value to animate towards.
public void Handle(LevelProgressionMessage message)
Parameters
| Name | Type | Description |
|---|---|---|
message | LevelProgressionMessage | The message containing the current progress value (0 to 1). |
Remarks
Called by the event aggregator when a LevelProgressionMessage is received.