C# Class GameManager, MultiplayerFPS-Tutorial

Inheritance: MonoBehaviour
显示文件 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_oe static_oe property

public static GameManager instance
return GameManager

matchSettings public_oe property

public MatchSettings matchSettings
return MatchSettings

onPlayerKilledCallback public_oe property

public OnPlayerKilledCallback onPlayerKilledCallback
return OnPlayerKilledCallback