Summary
This script implements a singleton pattern and maintains a public event
that other scripts can subscribe to for using message passing, delegates,
and events to synchronize the scene.
- Namespace
- ASL
.LocalEventSystem - Base Types
-
- MonoBehaviour
graph TD
Base0["MonoBehaviour"]-->Type
Type["ASLLocalEventManager"]
class Type type-node
Syntax
public class ASLLocalEventManager : MonoBehaviour
Events
| Name | Type | Summary |
|---|---|---|
| LocalEventTriggered | EventHandler |
Event handler using LocalEventArgs, other scripts can use delegation to have an
internal function invoked upon the local event being triggered elsewhere.
static
|
Properties
| Name | Value | Summary |
|---|---|---|
| Instance | ASLLocalEventManager |
Statically avaliable singleton instance
static
|
Methods
| Name | Value | Summary |
|---|---|---|
| Trigger |
bool |
This function sends a message to ever script subscribed to the EventHandler delegate.
|