private void Configure() { IWeaponController weaponController = InterfaceService.GetInterface <IWeaponController>(); ITargetController targetController = InterfaceService.GetInterface <ITargetController>(); IGameController gameController = InterfaceService.GetInterface <IGameController>(); IScoreUIController scoreUIController = InterfaceService.GetInterface <IScoreUIController>(); weaponController.Initialize(_gameControllerSettings.WeaponSettings, _weaponPoolService); targetController.Initialize(_gameControllerSettings.TargetSettings); scoreUIController.Initialize(_scoreUIControllerSettings, _uiPoolService); gameController.Initialize(_gameControllerSettings); }
private void Awake() { _gameControllerSettings = InterfaceService.GetInterface <IGameController>().Settings; }