public void Init() { _loadObjectsManager = GameClient.Get <ILoadObjectsManager>(); _uiManager = GameClient.Get <IUIManager>(); _backendFacade = GameClient.Get <BackendFacade>(); _backendDataControlMediator = GameClient.Get <BackendDataControlMediator>(); }
public void Init() { _uiManager = GameClient.Get <IUIManager>(); _loadObjectsManager = GameClient.Get <ILoadObjectsManager>(); _dataManager = GameClient.Get <IDataManager>(); _gameplayManager = GameClient.Get <IGameplayManager>(); _soundManager = GameClient.Get <ISoundManager>(); _tutorialManager = GameClient.Get <ITutorialManager>(); _backendDataControlMediator = GameClient.Get <BackendDataControlMediator>(); _gameplayManager.GameInitialized += GameInitializedHandler; _gameplayManager.GameEnded += GameEndedHandler; _deckStatus = new List <CardZoneOnBoardStatus>(); _deckStatus.Add(new CardZoneOnBoardStatus(null, 0)); _deckStatus.Add(new CardZoneOnBoardStatus( _loadObjectsManager.GetObjectByPath <Sprite>("Images/BoardCardsStatuses/deck_single"), 15)); _deckStatus.Add(new CardZoneOnBoardStatus( _loadObjectsManager.GetObjectByPath <Sprite>("Images/BoardCardsStatuses/deck_couple"), 40)); _deckStatus.Add(new CardZoneOnBoardStatus( _loadObjectsManager.GetObjectByPath <Sprite>("Images/BoardCardsStatuses/deck_bunch"), 60)); _deckStatus.Add(new CardZoneOnBoardStatus( _loadObjectsManager.GetObjectByPath <Sprite>("Images/BoardCardsStatuses/deck_full"), 80)); _graveyardStatus = new List <CardZoneOnBoardStatus>(); _graveyardStatus.Add(new CardZoneOnBoardStatus(null, 0)); _graveyardStatus.Add(new CardZoneOnBoardStatus( _loadObjectsManager.GetObjectByPath <Sprite>("Images/BoardCardsStatuses/graveyard_single"), 10)); _graveyardStatus.Add(new CardZoneOnBoardStatus( _loadObjectsManager.GetObjectByPath <Sprite>("Images/BoardCardsStatuses/graveyard_couple"), 40)); _graveyardStatus.Add(new CardZoneOnBoardStatus( _loadObjectsManager.GetObjectByPath <Sprite>("Images/BoardCardsStatuses/graveyard_bunch"), 75)); _graveyardStatus.Add(new CardZoneOnBoardStatus( _loadObjectsManager.GetObjectByPath <Sprite>("Images/BoardCardsStatuses/graveyard_full"), 100)); }
public void Init() { _uiManager = GameClient.Get <IUIManager>(); _loadObjectsManager = GameClient.Get <ILoadObjectsManager>(); _dataManager = GameClient.Get <IDataManager>(); _soundManager = GameClient.Get <ISoundManager>(); _appStateManager = GameClient.Get <IAppStateManager>(); _matchManager = GameClient.Get <IMatchManager>(); _backendFacade = GameClient.Get <BackendFacade>(); _backendDataControlMediator = GameClient.Get <BackendDataControlMediator>(); }
public void Init() { _uiManager = GameClient.Get <IUIManager>(); _loadObjectsManager = GameClient.Get <ILoadObjectsManager>(); _localizationManager = GameClient.Get <ILocalizationManager>(); _backendFacade = GameClient.Get <BackendFacade>(); _backendDataControlMediator = GameClient.Get <BackendDataControlMediator>(); _localizationManager.LanguageWasChangedEvent += LanguageWasChangedEventHandler; UpdateLocalization(); }
public void Init() { _uiManager = GameClient.Get <IUIManager>(); _loadObjectsManager = GameClient.Get <ILoadObjectsManager>(); _stateManager = GameClient.Get <IAppStateManager>(); _soundManager = GameClient.Get <ISoundManager>(); _playerManager = GameClient.Get <IPlayerManager>(); _dataManager = GameClient.Get <IDataManager>(); _backendFacade = GameClient.Get <BackendFacade>(); _backendDataControlMediator = GameClient.Get <BackendDataControlMediator>(); _backendFacade.ContractCreated += LoomManagerOnContractCreated; }