Members
(constant) Math
- Source
(constant) console
- Source
Methods
clearTimeout(token)
Equivalent of Unity: CancelInvoke
Parameters:
Name | Type | Description |
---|---|---|
token | SetTimeoutToken |
- Source
setTimeout(fn, delay) → {SetTimeoutToken}
Equivalent of Unity: Invoke
Parameters:
Name | Type | Description |
---|---|---|
fn | function | The function to call after the delay |
delay | number | Duration in milliseconds before calling fn |
- Source
Returns:
- Type:
- SetTimeoutToken