Class NotificationResponse
Handles incoming NotificationEntry objects by displaying them as notification messages within the configured message panel. Uses an object pool of message presenters for performance-efficient reuse of notification UI elements.
[RequireComponent(typeof(TypewriterActor))]
public class NotificationResponse : MonoBehaviour, IEntryResponser<NotificationEntry>, IEntryResponser
Inheritance
Implements
Methods
HandleEntry(BaseEntry, ITypewriterContext)
Handles an incoming typewriter BaseEntry.
public void HandleEntry(BaseEntry entry, ITypewriterContext context)
Parameters
| Name | Type | Description |
|---|---|---|
entry | BaseEntry | The typewriter entry that this responder will process. |
context | ITypewriterContext | The context instance providing access to blackboards and runtime data shared with other entries in the same scope. |
HandleEntry(NotificationEntry, ITypewriterContext)
Handles an incoming NotificationEntry by retrieving a presenter from the object pool, initializing it with the entry data, and ensuring it will be returned to the pool upon dismissal.
public void HandleEntry(NotificationEntry entry, ITypewriterContext context)
Parameters
| Name | Type | Description |
|---|---|---|
entry | NotificationEntry | The notification entry to be displayed. |
context | ITypewriterContext | The current typewriter context providing shared blackboards and runtime data. |