C# Class GameManager, MultiplayerFPS-Tutorial

Inheritance: MonoBehaviour
Show file Open project: Brackeys/MultiplayerFPS-Tutorial Class Usage Examples

Public Properties

Property Type Description
instance GameManager
matchSettings MatchSettings
onPlayerKilledCallback OnPlayerKilledCallback

Public Methods

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

Private Methods

Method Description
Awake ( ) : void

Method Details

GetAllPlayers() public static method

public static GetAllPlayers ( ) : Player[]
return Player[]

GetPlayer() public static method

public static GetPlayer ( string _playerID ) : Player
_playerID string
return Player

RegisterPlayer() public static method

public static RegisterPlayer ( string _netID, Player _player ) : void
_netID string
_player Player
return void

SetSceneCameraActive() public method

public SetSceneCameraActive ( bool isActive ) : void
isActive bool
return void

UnRegisterPlayer() public static method

public static UnRegisterPlayer ( string _playerID ) : void
_playerID string
return void

Property Details

instance public static property

public static GameManager instance
return GameManager

matchSettings public property

public MatchSettings matchSettings
return MatchSettings

onPlayerKilledCallback public property

public OnPlayerKilledCallback onPlayerKilledCallback
return OnPlayerKilledCallback