Constructor NetworkBehaviourReference
NetworkBehaviourReference(NetworkBehaviour)
Creates a new instance of the NetworkBehaviourReference<T> struct.
Declaration
public NetworkBehaviourReference(NetworkBehaviour networkBehaviour)
Parameters
| Type | Name | Description |
|---|---|---|
| NetworkBehaviour | networkBehaviour | The NetworkBehaviour to reference. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException |