public override void SetUpReference() { IPlayerInputManager inputManager = inputManagerAdaptor.GetInputManager(); thisShootingManager.SetInputManager(inputManager); ILaunchPoint launchPoint = launchPointAdaptor.GetLaunchPoint(); thisShootingManager.SetLaunchPoint(launchPoint); ITrajectory trajectory = trajectoryAdaptor.GetTrajectory(); thisShootingManager.SetTrajectory(trajectory); ILandedArrowReserve landedArrowReserve = landedArrowReserveAdaptor.GetLandedArrowReserve(); thisShootingManager.SetLandedArrowReserve(landedArrowReserve); IArrowReserve arrowReserve = arrowReserveAdaptor.GetArrowReserve(); thisShootingManager.SetArrowReserve(arrowReserve); // IArrowTrailReserve arrowTrailReserve = arrowTrailReserveAdaptor.GetArrowTrailReserve(); // thisShootingManager.SetArrowTrailReserve(arrowTrailReserve); ICriticalFlash flash = criticalFlashAdaptor.GetCriticalFlash(); thisShootingManager.SetCriticalFlash(flash); IShootingDataManager shootingDataManager = shootingDataManagerAdaptor.GetShootingDataManager(); thisShootingManager.SetShootingDataManager(shootingDataManager); }
public override void SetUpReference() { base.SetUpReference(); IPlayerInputManager inputManager = GetInputManager(); thisInputScroller.SetPlayerInputManager(inputManager); }
public PlayerInputStateEngineConstArg( IPlayerInputManager playerInputManager, float drawDeltaThreshold, ISlickBowShootingProcessFactory processFactory ) { thisInputManager = playerInputManager; thisDrawDeltaThreshold = drawDeltaThreshold; thisProcessFactory = processFactory; }
private static void Config() { var baseType = typeof(IModule); var cache = new DefaultModuleCache(); var factory = new DefaultModuleFactory(baseType.Assembly, baseType); Container = new ModuleContainer(cache, factory); IPoolManager poolManager = Container.GetModule <IPoolManager>(); IPlayerInputManager playerInputManager = Container.GetModule <IPlayerInputManager>(); IUIManager uIManager = Container.GetModule <IUIManager>(); IMonoManager monoManager = Container.GetModule <IMonoManager>(); IEnumerable <IModule> modules = Container.GetAllModules <IModule>(); foreach (var module in modules) { //通过父类接口调用到它的实现类的具体方法 module.InitModule(); } }
public override void SetUpReference() { IGameplayUIElement gameplayUIElement = gameplayUIElementAdaptor.GetGameplayUIElement(); thisWidget.SetGameplayUIElement(gameplayUIElement); IPlayerCharacterWaypointsFollower follower = playerCharacterWaypointsFollowerAdaptor.GetPlayerCharacterWaypointsFollower(); thisWidget.SetPlayerCharacterWaypointsFollower(follower); IGameStatsTracker tracker = gameStatsTrackerAdaptor.GetTracker(); thisWidget.SetGameStatsTracker(tracker); IHeadUpDisplay hud = headUpDisplayAdaptor.GetHeadUpDisplay(); thisWidget.SetHeadUpDisplay(hud); IUIElementGroupScroller rootScroller = (IUIElementGroupScroller)rootScrollerAdaptor.GetUIElement(); thisWidget.SetRootScroller(rootScroller); // IFrostGlass frostGlass = rootElementFrostGlassAdaptor.GetFrostGlass(); // thisWidget.SetRootElementFrostGlass(frostGlass); IResourcePanel resourcePanel = resourcePanelAdaptor.GetResourcePanel(); thisWidget.SetResourcePanel(resourcePanel); IMainMenuUIElement mainMenuUIElement = mainMenuUIAdaptor.GetMainMenuUIElement(); thisWidget.SetMainMenuUIElement(mainMenuUIElement); IEndGamePane endGamePane = endGamePaneAdaptor.GetEndGamePane(); thisWidget.SetEndGamePane(endGamePane); ITitlePane titlePane = titlePaneAdaptor.GetTitlePane(); thisWidget.SetTitlePane(titlePane); IPlayerDataManager playerDataManager = playerDataManagerAdaptor.GetPlayerDataManager(); thisWidget.SetPlayerDataManager(playerDataManager); IShootingDataManager shootingDataManager = shootingDataManagerAdaptor.GetShootingDataManager(); thisWidget.SetShootingDataManager(shootingDataManager); IScoreManager scoreManager = scoreManagerAdaptor.GetScoreManager(); thisWidget.SetScoreManager(scoreManager); ICurrencyManager currencyManager = currencyManagerAdaptor.GetCurrencyManager(); thisWidget.SetCurrencyManager(currencyManager); IHeatManager heatManager = heatManagerAdaptor.GetHeatManager(); thisWidget.SetHeatManager(heatManager); ICoreGameplayInputScroller inputScroller = inputScrollerAdaptor.GetInputScroller(); thisWidget.SetCoreGameplayInputScroller(inputScroller); IGameplayPause gameplayPause = gameplayPauseAdaptor.GetGameplayPause(); thisWidget.SetGameplayPause(gameplayPause); IPlayerInputManager playerInputManager = playerInputManagerAdaptor.GetInputManager(); thisWidget.SetPlayerInputManager(playerInputManager); IFrostManager frostManager = frostManagerAdaptor.GetFrostManager(); thisWidget.SetFrostManager(frostManager); ITutorialPane tutorialPane = tutorialPaneAdaptor.GetTutorialPane(); thisWidget.SetTutorialPane(tutorialPane); IColorSchemeManager colorSchemeManager = colorSchemeManagerAdaptor.GetColorSchemeManager(); thisWidget.SetColorSchemeManager(colorSchemeManager); IInterstitialADManager interstitialADManager = interstitialADManagerAdaptor.GetInterstitialADManager(); thisWidget.SetInterstitialADManager(interstitialADManager); }
public void SetPlayerInputManager(IPlayerInputManager inputManager) { thisInputManager = inputManager; }
public void SetPlayerInputManager(IPlayerInputManager manager) { thisPlayerInputMnanager = manager; }