NetworkElementBase Constructor (INetworkContainer, MonoBehaviour, BehaviorMode, Int32)
Constructor for creating a network element with a specified container, linked MonoBehaviour, behavior mode, and network ID.
Namespace:
com.onlineobject.objectnetAssembly: ObjectNetAPI (in ObjectNetAPI.dll)
Syntax
public NetworkElementBase( INetworkContainer container, MonoBehaviour linkedObject, BehaviorMode mode, int networkId )
Parameters
- container
- Type: com.onlineobject.objectnet..::..INetworkContainer
The container that will hold this network element.
- linkedObject
- Type: MonoBehaviour
The MonoBehaviour linked to this network element.
- mode
- Type: com.onlineobject.objectnet..::..BehaviorMode
The behavior mode for this network element.
- networkId
- Type: Int32
The unique identifier for this network element.