Funzione statica
Veloce
Events.Subscribe
Listens for a local custom Event triggered by <code>Events.Call()</code> on the same side
Non ancora tradotto
Sintassi
Events.Subscribe(event_name, callback)
Parametri
| Nome | Tipo | Predefinito | Descrizione |
|---|---|---|---|
event_name
|
string | — | The Event Name to subscribe |
callback
|
function | — | The callback function to execute |
Valore restituito
- function the subscribed callback itself