PrefabInPositionObserver
A class in Root.Township, ATT.MicroTutorial.Steps.
Trigger placed in a step's dynamic content. Server: broadcasts PrefabInPositionEvent for the domain's player when a network prefab enters it.
- Listed in ATT, Features and other game namespaces
- Inherits or implements
MonoBehaviour
Constructors
| Member | What it is |
|---|---|
PrefabInPositionObserver() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
4 private and internal fields
Properties
1 private and internal property
Methods
2 private and internal methods
| Member | What it is |
|---|---|
private void OnTriggerEnter(Collider other) | Server: finds the entering collider's NetworkPrefab and broadcasts the event for the domain's player. |
private void Start() | Disables the component on clients. |