A convenience class that allows classes that inherit
AStateBehaviour to interact with their parent CommsRadioMode.
- Namespace
- CommsRadioAPI
- Base Types
-
- object
graph BT
Type-->Base0["object"]
Type["CommsRadioUtility"]
class Type type-node
Syntax
public class CommsRadioUtility
Properties
| Name | Property Type | Summary |
|---|---|---|
| SignalOrigin | Transform |
Provides readonly access to the signal origin transform stored on the Comms Radio mode.
|
Methods
| Name | Return Value | Summary |
|---|---|---|
| GetMaterial |
Material? |
Get a material used by the vanilla Comms Radio modes to highlight vehicles.
|
| PlaySound |
void |
Play a vanilla sound from the Comms Radio.
|
| PlayVehicleSound |
void |
Play a vanilla sound from a locomotive or wagon.
|
| StartCoroutine |
Coroutine |
Start a coroutine on the Comms Radio mode.
|
| StopCoroutine |
void |
Stop a running coroutine.
|