C# Class Player_ID, goalBall

Sets up a unique identity for the player
Inheritance: NetworkBehaviour
ファイルを表示 Open project: DrexelGoalBall/goalBall Class Usage Examples

Public Properties

Property Type Description
prefabName string

Public Methods

Method Description
OnStartLocalPlayer ( ) : void

When the local player object is set up, get and set its unique identity

Private Methods

Method Description
Awake ( ) : void

Initializes variables when script starts

CmdTellServerMyIdentity ( string name ) : void
CmdTellServerMyTeamTag ( string tag ) : void
GetNetIdentity ( ) : void
MakeUniqueIdentity ( ) : string

Determine the unique identity based on its network instance id

SetIdentity ( ) : void

If local player, make unique identity, otherwise set the provided identity

SetTeamTag ( string tag ) : void
Update ( ) : void

Set the identity and tag of this object if it has not been properly set yet

Method Details

OnStartLocalPlayer() public method

When the local player object is set up, get and set its unique identity
public OnStartLocalPlayer ( ) : void
return void

Property Details

prefabName public_oe property

public string prefabName
return string