C# Class Player_ID, goalBall

Sets up a unique identity for the player
Inheritance: NetworkBehaviour
Afficher le fichier Open project: DrexelGoalBall/goalBall Class Usage Examples

Méthodes publiques

Свойство Type Description
prefabName string

Méthodes publiques

Méthode Description
OnStartLocalPlayer ( ) : void

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

Private Methods

Méthode 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 méthode

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

Property Details

prefabName public_oe property

public string prefabName
Résultat string