protected override void OnStart() { base.OnStart(); _network = _controller as NetworkController; _network.OnAddClient += UpdateData; _network.OnRemoveClient += UpdateData; _network.OnClientStatsChange += UpdateData; _ids = _bootstrap.GetController(ControllerTypes.Id) as IdsController; #if HAS_SERVER _ids.OnSessionUpdate += UpdateData; _ids.OnIdsReceiveEnded += UpdateData; #endif _ranking = _bootstrap.GetController(ControllerTypes.Ranking) as RankingController; _score = _bootstrap.GetController(ControllerTypes.Score) as ScoreController; _score.OnValueUpdate += UpdateData; //_image = GetComponent<Image>(); _character = _bootstrap.GetController(ControllerTypes.Characters) as CharacterSelectionController; _character.OnCharacterUpdated += UpdateData; }
protected override void GetReferences() { base.GetReferences(); _idsController = _bootstrap.GetController(ControllerTypes.Id) as IdsController; _networkConnections.OnClientsReset += CallClientsResetEvent; _networkConnections.OnAddClient += CallAddClientEvent; _networkConnections.OnUpdateClient += CallOnClientStatsChangeEvent; _networkConnections.OnRemoveClient += CallRemoveClientEvent; }
protected override void OnStart() { base.OnStart(); _network = _controller as NetworkController; _network.OnAddClient += UpdateData; _network.OnRemoveClient += UpdateData; _network.OnClientStatsChange += UpdateData; _ids = _bootstrap.GetController(ControllerTypes.Id) as IdsController; #if HAS_SERVER _ids.OnSessionUpdate += UpdateData; _ids.OnIdsReceiveEnded += UpdateData; #endif _ranking = _bootstrap.GetController(ControllerTypes.Ranking) as RankingController; _score = _bootstrap.GetController(ControllerTypes.Score) as ScoreController; _score.OnValueUpdate += UpdateData; ResetText(); }
protected override void OnStart() { base.OnStart(); _idsController = _controller as IdsController; }
protected override void OnStart() { base.OnStart(); _idsController = _bootstrap.GetController(ControllerTypes.Id) as IdsController; }