C# Class HappyFunTimes.PlayerConnector

Inheritance: UnityEngine.MonoBehaviour
ファイルを表示 Open project: greggman/hft-unity-gamepad

Public Properties

Property Type Description
players UnityEngine.GameObject[]
timeoutForDisconnectedPlayersToReconnect int

Public Methods

Method 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

Method Description
GetPlayer ( int ndx ) : GameObject

Method Details

Awake() public method

public Awake ( ) : void
return void

Cleanup() public method

public Cleanup ( ) : void
return void

Connected() public method

public Connected ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

Disconnected() public method

public Disconnected ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

FailedToStart() public method

public FailedToStart ( object sender, System e ) : void
sender object
e System
return void

FlushCurrentPlayers() public method

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

OnApplicationExit() public method

public OnApplicationExit ( ) : void
return void

OnDestroy() public method

public OnDestroy ( ) : void
return void

PlayerConnector() public method

public PlayerConnector ( ) : System
return System

ReturnPlayer() public method

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
return void

Start() public method

public Start ( ) : void
return void

StartConnection() public method

public StartConnection ( ) : void
return void

StartGameServer() public method

public StartGameServer ( object sender, System e ) : void
sender object
e System
return void

StartHappyFunTimes() public method

public StartHappyFunTimes ( ) : void
return void

StopHappyFunTimes() public method

public StopHappyFunTimes ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

players public_oe property

public GameObject[],UnityEngine players
return UnityEngine.GameObject[]

timeoutForDisconnectedPlayersToReconnect public_oe property

public int timeoutForDisconnectedPlayersToReconnect
return int