public override void StartTransition(LevelOfDifficulty.Level level) { var scenarioShopSettings = Config.GetScenarioShopSettings(); ScenarioShopSettings.ShopDifficultyStruct shopDifficultyStruct = scenarioShopSettings.GetSettings(level); StartActionShopScript.SetProductCount(shopDifficultyStruct.ProductCount); StartActionShopScript.SetPrepareTime(shopDifficultyStruct.PrepareTime); ControllerTeleport.Teleport(positionToTeleport, rotationToTeleport, StartActionShopScript.StartAction); BackgroundMusic.ChangeBackgroundMusic(BackgroundMusic.MusicPlace.Shop); }
public override void StartTransition(LevelOfDifficulty.Level level) { var scenarioParkSettings = Config.GetScenarioParkSettings(); ScenarioParkSettings.ParkDifficultyStruct parkDifficultyStruct = scenarioParkSettings.GetSettings(level); StartActionParkScript.SetPrepareTime(parkDifficultyStruct.PrepareTime); ControllerTeleport.Teleport(positionToTeleport, rotationToTeleport, StartActionParkScript.StartAction); //TODO A mpark music BackgroundMusic.ChangeBackgroundMusic(BackgroundMusic.MusicPlace.Hub); }
public override void StartTransition(LevelOfDifficulty.Level level) { var scenarioCitySettings = Config.GetScenarioCitySettings(); ScenarioCitySettings.CityDifficultyStruct cityDifficultyStruct = scenarioCitySettings.GetSettings(level); StartActionCityScript.SetPrepareTime(cityDifficultyStruct.PrepareTime); StartFinishPointsManager.GenerateStartGinishPoints(level); positionToTeleport = StartFinishPointsManager.GetStartPointPosition(); rotationToTeleport = StartFinishPointsManager.GetStartPointRotation(); ControllerTeleport.Teleport(positionToTeleport, rotationToTeleport, StartActionCityScript.StartAction); BackgroundMusic.ChangeBackgroundMusic(BackgroundMusic.MusicPlace.City); }
public ParkDifficultyStruct GetSettings(LevelOfDifficulty.Level level) { switch (level) { case LevelOfDifficulty.Level.Easy: return(Easy); case LevelOfDifficulty.Level.Medium: return(Medium); case LevelOfDifficulty.Level.Hard: return(Hard); default: throw new System.NotImplementedException(); } }
public void Generate(LevelOfDifficulty.Level level, out GameObject startPoint, out GameObject finishPoint) { startPoint = Instantiate(startPointPrefab, startPoints[Random.Range(0, startPoints.Count)].transform); switch (level) { case LevelOfDifficulty.Level.Easy: finishPointIndex = Random.Range(0, finishPointsEasy.Count); finishPoint = Instantiate(finishPointPrefab, finishPointsEasy[finishPointIndex].transform); break; case LevelOfDifficulty.Level.Medium: finishPointIndex = Random.Range(0, finishPointsMedium.Count); finishPoint = Instantiate(finishPointPrefab, finishPointsMedium[finishPointIndex].transform); break; case LevelOfDifficulty.Level.Hard: finishPointIndex = Random.Range(0, finishPointsHard.Count); finishPoint = Instantiate(finishPointPrefab, finishPointsHard[finishPointIndex].transform); break; default: throw new System.NotImplementedException(); } }
public override void StartTransition(LevelOfDifficulty.Level level = LevelOfDifficulty.Level.Medium) { ControllerTeleport.Teleport(positionToTeleport, rotationToTeleport, null); BackgroundMusic.ChangeBackgroundMusic(BackgroundMusic.MusicPlace.Hub); }
public void GenerateStartGinishPoints(LevelOfDifficulty.Level level) { GenerateStartFinishPoints.Generate(level, out startPoint, out finishPoint); }
public abstract void StartTransition(LevelOfDifficulty.Level level);