Operator implicit operator
implicit operator NetworkBehaviour(NetworkBehaviourReference)
Implicitly convert NetworkBehaviourReference to NetworkBehaviour.
Declaration
public static implicit operator NetworkBehaviour(NetworkBehaviourReference networkBehaviourRef)
Parameters
Type | Name | Description |
---|---|---|
NetworkBehaviourReference | networkBehaviourRef | The NetworkBehaviourReference to convert from. |
Returns
Type | Description |
---|---|
NetworkBehaviour | The NetworkBehaviour this class is holding a reference to |
implicit operator NetworkBehaviourReference(NetworkBehaviour)
Implicitly convert NetworkBehaviour to NetworkBehaviourReference.
Declaration
public static implicit operator NetworkBehaviourReference(NetworkBehaviour networkBehaviour)
Parameters
Type | Name | Description |
---|---|---|
NetworkBehaviour | networkBehaviour | The NetworkBehaviour to convert from. |
Returns
Type | Description |
---|---|
NetworkBehaviourReference | The NetworkBehaviourReference created from the NetworkBehaviour passed in as a parameter |