C# Class HappyFunTimes.PlayerConnector

Inheritance: UnityEngine.MonoBehaviour
Afficher le fichier Open project: greggman/hft-unity-gamepad

Méthodes publiques

Свойство Type Description
players UnityEngine.GameObject[]
timeoutForDisconnectedPlayersToReconnect int

Méthodes publiques

Méthode Description
Awake ( ) : void
Cleanup ( ) : void
Connected ( object sender, EventArgs e ) : void
Disconnected ( object sender, EventArgs e ) : void
FailedToStart ( object sender, System e ) : void
FlushCurrentPlayers ( ) : void

Returns all the current players to the waiting list and gets new ones if any are waiting

OnApplicationExit ( ) : void
OnDestroy ( ) : void
PlayerConnector ( ) : System
ReturnPlayer ( NetPlayer netPlayer ) : void

Call this to rotate an active player out and start the next waiting player.

Start ( ) : void
StartConnection ( ) : void
StartGameServer ( object sender, System e ) : void
StartHappyFunTimes ( ) : void
StopHappyFunTimes ( ) : void
Update ( ) : void

Private Methods

Méthode Description
GetPlayer ( int ndx ) : GameObject

Method Details

Awake() public méthode

public Awake ( ) : void
Résultat void

Cleanup() public méthode

public Cleanup ( ) : void
Résultat void

Connected() public méthode

public Connected ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Résultat void

Disconnected() public méthode

public Disconnected ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Résultat void

FailedToStart() public méthode

public FailedToStart ( object sender, System e ) : void
sender object
e System
Résultat void

FlushCurrentPlayers() public méthode

Returns all the current players to the waiting list and gets new ones if any are waiting
public FlushCurrentPlayers ( ) : void
Résultat void

OnApplicationExit() public méthode

public OnApplicationExit ( ) : void
Résultat void

OnDestroy() public méthode

public OnDestroy ( ) : void
Résultat void

PlayerConnector() public méthode

public PlayerConnector ( ) : System
Résultat System

ReturnPlayer() public méthode

Call this to rotate an active player out and start the next waiting player.
public ReturnPlayer ( NetPlayer netPlayer ) : void
netPlayer NetPlayer The NetPlayer of the player to return
Résultat void

Start() public méthode

public Start ( ) : void
Résultat void

StartConnection() public méthode

public StartConnection ( ) : void
Résultat void

StartGameServer() public méthode

public StartGameServer ( object sender, System e ) : void
sender object
e System
Résultat void

StartHappyFunTimes() public méthode

public StartHappyFunTimes ( ) : void
Résultat void

StopHappyFunTimes() public méthode

public StopHappyFunTimes ( ) : void
Résultat void

Update() public méthode

public Update ( ) : void
Résultat void

Property Details

players public_oe property

public GameObject[],UnityEngine players
Résultat UnityEngine.GameObject[]

timeoutForDisconnectedPlayersToReconnect public_oe property

public int timeoutForDisconnectedPlayersToReconnect
Résultat int