public override void OnStartClient() { base.OnStartClient(); var clientContext = LobbyManager.Instance.CreateBattleClientContext(this); _isClientInited = clientContext != null; if (_isClientInited) { _gameHUDProvider = clientContext.gameHUDProvider; OnChangeAlivePlayersCount(_alivePlayersCount); OnSetStartServerTime(_startServerTime); } }
public BattleClientContext(GameHUD hud, short targetPlayerId) { gameHUD = hud; gameHUDProvider = new GameHUDProvider(gameHUD, targetPlayerId); }