C# Class GameManager, MultiplayerFPS-Tutorial

Inheritance: MonoBehaviour
Afficher le fichier Open project: Brackeys/MultiplayerFPS-Tutorial Class Usage Examples

Méthodes publiques

Свойство Type Description
instance GameManager
matchSettings MatchSettings
onPlayerKilledCallback OnPlayerKilledCallback

Méthodes publiques

Méthode Description
GetAllPlayers ( ) : Player[]
GetPlayer ( string _playerID ) : Player
RegisterPlayer ( string _netID, Player _player ) : void
SetSceneCameraActive ( bool isActive ) : void
UnRegisterPlayer ( string _playerID ) : void

Private Methods

Méthode Description
Awake ( ) : void

Method Details

GetAllPlayers() public static méthode

public static GetAllPlayers ( ) : Player[]
Résultat Player[]

GetPlayer() public static méthode

public static GetPlayer ( string _playerID ) : Player
_playerID string
Résultat Player

RegisterPlayer() public static méthode

public static RegisterPlayer ( string _netID, Player _player ) : void
_netID string
_player Player
Résultat void

SetSceneCameraActive() public méthode

public SetSceneCameraActive ( bool isActive ) : void
isActive bool
Résultat void

UnRegisterPlayer() public static méthode

public static UnRegisterPlayer ( string _playerID ) : void
_playerID string
Résultat void

Property Details

instance public_oe static_oe property

public static GameManager instance
Résultat GameManager

matchSettings public_oe property

public MatchSettings matchSettings
Résultat MatchSettings

onPlayerKilledCallback public_oe property

public OnPlayerKilledCallback onPlayerKilledCallback
Résultat OnPlayerKilledCallback