Example #1
0
        public override void OnStartClient()
        {
            base.OnStartClient();

            var clientContext = LobbyManager.Instance.CreateBattleClientContext(this);

            _isClientInited = clientContext != null;

            if (_isClientInited)
            {
                _gameHUDProvider = clientContext.gameHUDProvider;

                OnChangeAlivePlayersCount(_alivePlayersCount);
                OnSetStartServerTime(_startServerTime);
            }
        }
Example #2
0
 public BattleClientContext(GameHUD hud, short targetPlayerId)
 {
     gameHUD         = hud;
     gameHUDProvider = new GameHUDProvider(gameHUD, targetPlayerId);
 }