public ConstArg( IHeatManager heatManager, float heatDecayRate, ISlickBowShootingProcessFactory processFactory ) { thisHeatManager = heatManager; thisHeatDecayRate = heatDecayRate; thisProcessFactory = processFactory; }
public ConstArg( IProcessManager processManager, IHeatManager heatManager, float targetMaxHeat, float smoothTime ) : base( processManager ) { thisHeatManager = heatManager; thisTargetMaxHeat = targetMaxHeat; thisSmoothTime = smoothTime; }
// public IHeatImageWaitForNextAdditionProcess CreateHeatImageWaitForNextAdditionProcess( // IHeatImage heatImage, // float comboTime // ){ // HeatImageWaitForNextAdditionProcess.IConstArg arg = new HeatImageWaitForNextAdditionProcess.ConstArg( // thisProcessManager, // comboTime, // heatImage // ); // return new HeatImageWaitForNextAdditionProcess(arg); // } public IHeatLevelUpProcess CreateHeatLevelUpProcess( IHeatManager heatManager, float targetMaxHeat, float smoothTime ) { HeatLevelUpProcess.IConstArg arg = new HeatLevelUpProcess.ConstArg( thisProcessManager, heatManager, targetMaxHeat, smoothTime ); return(new HeatLevelUpProcess(arg)); }
public override void SetUpReference() { IHeatManager heatManager = heatManagerAdaptor.GetHeatManager(); thisTracker.SetHeatManager(heatManager); IScoreManager scoreManager = scoreManagerAdaptor.GetScoreManager(); thisTracker.SetScoreManager(scoreManager); ICurrencyManager currencyManager = currencyManagerAdaptor.GetCurrencyManager(); thisTracker.SetCurrencyManager(currencyManager); }
void DrawCountDownToggle(Rect rect) { IHeatManager heatManager = heatManagerAdaptor.GetHeatManager(); bool currentlyCountingDown = heatManager.IsCountingDown(); string toggleText = currentlyCountingDown? "Heat Stop" : "Heat Start"; bool countsDown = GUI.Toggle(rect, currentlyCountingDown, toggleText); if (currentlyCountingDown != countsDown) { if (countsDown) { heatManager.StartCountingDown(); } else { heatManager.StopCountingDown(); } } }
public override void SetUp() { thisHeatManager = CreateHeatManager(); }
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); }
void AddHeat() { IHeatManager manager = heatManagerAdaptor.GetHeatManager(); manager.AddHeat(.05f); }
public void SetHeatManager(IHeatManager manager) { thisHeatManager = manager;; }