protected override void GameSetup() { base.GameSetup(); if (AppConstants.DebugPanelEnabled) { SRDebug.Init(); } // GameplayModule if (GetComponentInChildren <ModuleInstaller <IGameplayModule> >()) { IGameplayModule moduleInstance = GetComponentInChildren <ModuleInstaller <IGameplayModule> >().InstallModule(); Modules.GameplayModule.SetupModule(moduleInstance, moduleInstance.Settings); } gameObject.AddComponent <MiniGameAPI>(); LogManager = new LogManager(); PlayerProfileManager = new PlayerProfileManager(); gameObject.AddComponent <DebugManager>(); gameObject.AddComponent <NavigationManager>(); gameObject.AddComponent <KeeperManager>(); RewardSystemManager.Init(); InitTeacherForPlayer(); GameSettings.HighQualityGfx = false; }
public IGameplayModule SetupModule(IGameplayModule _concreteModule, IModuleSettings _settings = null) { Settings = _settings; // Add Here setup stuffs for this concrete implementation return(this); }
/// <summary> /// Module Setup. /// </summary> /// <param name="_concreteModule">Concrete module implementation to set as active module behaviour.</param> /// <returns></returns> public IGameplayModule SetupModule(IGameplayModule _concreteModule, IModuleSettings _settings = null) { ConcreteModuleImplementation = _concreteModule.SetupModule(_concreteModule, _settings); return(ConcreteModuleImplementation); }