diff --git a/Assets/Scripts/Games/NightWalkAgb/AgbPlatformHandler.cs b/Assets/Scripts/Games/NightWalkAgb/AgbPlatformHandler.cs index 16cdc7614..794934640 100644 --- a/Assets/Scripts/Games/NightWalkAgb/AgbPlatformHandler.cs +++ b/Assets/Scripts/Games/NightWalkAgb/AgbPlatformHandler.cs @@ -1,3 +1,4 @@ +using System; using System.Collections; using System.Collections.Generic; using UnityEngine; @@ -27,13 +28,18 @@ namespace HeavenStudio.Games.Scripts_AgbNightWalk for (int i = 0; i < platformCount; i++) { AgbPlatform platform = Instantiate(platformRef, transform); - platform.Init(game.countInBeat + i - (platformCount * 0.5), game.countInBeat + i + 8, this); + platform.Init(game.countInBeat + i + 8 - (platformCount * 0.5), game.countInBeat + i + 8, this); platform.gameObject.SetActive(true); } } else { - + for (int i = 0; i < platformCount; i++) + { + AgbPlatform platform = Instantiate(platformRef, transform); + platform.Init(Math.Ceiling(beat) + i - (platformCount * 1.5), Math.Ceiling(beat) + i - platformCount, this); + platform.gameObject.SetActive(true); + } } } }