C# 클래스 HappyFunTimes.PlayerConnector

상속: UnityEngine.MonoBehaviour
파일 보기 프로젝트 열기: greggman/hft-unity-gamepad

공개 프로퍼티들

프로퍼티 타입 설명
players UnityEngine.GameObject[]
timeoutForDisconnectedPlayersToReconnect int

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
GetPlayer ( int ndx ) : GameObject

메소드 상세

Awake() 공개 메소드

public Awake ( ) : void
리턴 void

Cleanup() 공개 메소드

public Cleanup ( ) : void
리턴 void

Connected() 공개 메소드

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

Disconnected() 공개 메소드

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

FailedToStart() 공개 메소드

public FailedToStart ( object sender, System e ) : void
sender object
e System
리턴 void

FlushCurrentPlayers() 공개 메소드

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

OnApplicationExit() 공개 메소드

public OnApplicationExit ( ) : void
리턴 void

OnDestroy() 공개 메소드

public OnDestroy ( ) : void
리턴 void

PlayerConnector() 공개 메소드

public PlayerConnector ( ) : System
리턴 System

ReturnPlayer() 공개 메소드

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
리턴 void

Start() 공개 메소드

public Start ( ) : void
리턴 void

StartConnection() 공개 메소드

public StartConnection ( ) : void
리턴 void

StartGameServer() 공개 메소드

public StartGameServer ( object sender, System e ) : void
sender object
e System
리턴 void

StartHappyFunTimes() 공개 메소드

public StartHappyFunTimes ( ) : void
리턴 void

StopHappyFunTimes() 공개 메소드

public StopHappyFunTimes ( ) : void
리턴 void

Update() 공개 메소드

public Update ( ) : void
리턴 void

프로퍼티 상세

players 공개적으로 프로퍼티

public GameObject[],UnityEngine players
리턴 UnityEngine.GameObject[]

timeoutForDisconnectedPlayersToReconnect 공개적으로 프로퍼티

public int timeoutForDisconnectedPlayersToReconnect
리턴 int