public override void RestartSpawn() { lastPlatformPos = platformData.PlatformStartSpawnPos.z; currentPlatformPos = platformData.PlatformStartSpawnPos; for (int i = 0; i < platformPool.GetCount(); i++) { Spawn(); } }