From f1f0df1a955c5778067ed99cf0fd35d9d6c39bb3 Mon Sep 17 00:00:00 2001 From: kimura Date: Mon, 25 Jul 2022 10:53:20 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=9E=E3=83=8D=E3=83=BC=E3=82=B8=E3=83=A3?= =?UTF-8?q?=E3=81=A7=E3=81=AE=E8=83=8C=E6=99=AF=E8=A8=AD=E5=AE=9A=E3=81=AB?= =?UTF-8?q?=E5=AF=BE=E5=BF=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Assets/MyGame/Scenes/MiniGame/Scripts/BGManager.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/popcorn/Assets/MyGame/Scenes/MiniGame/Scripts/BGManager.cs b/popcorn/Assets/MyGame/Scenes/MiniGame/Scripts/BGManager.cs index f91f69f3..8013c3a5 100644 --- a/popcorn/Assets/MyGame/Scenes/MiniGame/Scripts/BGManager.cs +++ b/popcorn/Assets/MyGame/Scenes/MiniGame/Scripts/BGManager.cs @@ -62,5 +62,13 @@ namespace MyGame.Scenes.MiniGame.Scripts bg.GetComponent()?.SetFence(nextFenceXPos); } } + + public void SetSky(ScrollGameDifficulty difficulty) + { + foreach (var bg in bgArray) + { + bg.GetComponent()?.SetSky(difficulty); + } + } } } \ No newline at end of file