マネージャでの背景設定に対応
This commit is contained in:
parent
70e551150a
commit
f1f0df1a95
|
|
@ -62,5 +62,13 @@ namespace MyGame.Scenes.MiniGame.Scripts
|
||||||
bg.GetComponent<BackGround>()?.SetFence(nextFenceXPos);
|
bg.GetComponent<BackGround>()?.SetFence(nextFenceXPos);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void SetSky(ScrollGameDifficulty difficulty)
|
||||||
|
{
|
||||||
|
foreach (var bg in bgArray)
|
||||||
|
{
|
||||||
|
bg.GetComponent<BackGround>()?.SetSky(difficulty);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue