C# Class HappyFunTimes.PlayerSpawner

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

Méthodes publiques

Свойство Type Description
prefabToSpawnForPlayer UnityEngine.GameObject

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
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
StartLocalPlayer ( NetPlayer netPlayer, string name = "", object data = null ) : void
StartNewPlayer ( object sender, PlayerConnectMessageArgs e ) : void
StartPlayer ( NetPlayer netPlayer, object data ) : void
StopHappyFunTimes ( ) : void
Update ( ) : void

Private Methods

Méthode Description
GetPrefab ( 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

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

StartLocalPlayer() public méthode

public StartLocalPlayer ( NetPlayer netPlayer, string name = "", object data = null ) : void
netPlayer NetPlayer
name string
data object
Résultat void

StartNewPlayer() public méthode

public StartNewPlayer ( object sender, PlayerConnectMessageArgs e ) : void
sender object
e PlayerConnectMessageArgs
Résultat void

StartPlayer() public méthode

public StartPlayer ( NetPlayer netPlayer, object data ) : void
netPlayer NetPlayer
data object
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

prefabToSpawnForPlayer public_oe property

public GameObject,UnityEngine prefabToSpawnForPlayer
Résultat UnityEngine.GameObject