Class SpawningBase_PlayerScript
Inheritance
SpawningBase_PlayerScript
Inherited Members
Namespace: Global Namespace
Assembly: com.unity.multiplayer-hlapi.Tests.dll
Syntax
public class SpawningBase_PlayerScript : NetworkBehaviour
Fields
floatValue
Declaration
public float floatValue
Field Value
Type | Description |
---|---|
float |
intValue
Declaration
public int intValue
Field Value
Type | Description |
---|---|
int |
Methods
OnStartClient()
Called on every NetworkBehaviour when it is activated on a client.
Objects on the host have this function called, as there is a local client on the host. The values of SyncVars on object are guaranteed to be initialized correctly with the latest state from the server when this function is called on the client.
Declaration
public override void OnStartClient()
Overrides
OnStartServer()
This is invoked for NetworkBehaviour objects when they become active on the server.
This could be triggered by NetworkServer.Listen() for objects in the scene, or by NetworkServer.Spawn() for objects that are dynamically created.
This will be called for objects on a "host" as well as for object on a dedicated server.
Declaration
public override void OnStartServer()