Interface IFeedbackRuntime
Coroutine host that channels use to schedule their own per-effect restoration (LED reset,
flash fade-out, hit-stop restore, shake decay) without each channel being a MonoBehaviour. The
feedback service implements this and remains the single owner of the global stop/lifecycle safety
net. Routines are keyed by an opaque handle so a new run replaces a prior one.
Namespace: Serenity.Feedback.Application.Interfaces
Assembly: Serenity.Feedback.Application.dll
Syntax
public interface IFeedbackRuntime
Methods
Cancel(object)
Cancels the coroutine previously started with handle, if any.
Declaration
void Cancel(object handle)
Parameters
| Type | Name | Description |
|---|---|---|
| object | handle | The key passed to Run(IEnumerator, object). |
Run(IEnumerator, object)
Starts (or replaces) a coroutine identified by handle.
Declaration
void Run(IEnumerator routine, object handle)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerator | routine | The coroutine body. |
| object | handle | Opaque key; running the same handle again cancels the previous routine. |