diff --git a/Gameton-06/Assets/Gameton/Scripts/UI/GuideUI.cs b/Gameton-06/Assets/Gameton/Scripts/UI/GuideUI.cs index 5940f46b..6cdd429b 100644 --- a/Gameton-06/Assets/Gameton/Scripts/UI/GuideUI.cs +++ b/Gameton-06/Assets/Gameton/Scripts/UI/GuideUI.cs @@ -6,6 +6,8 @@ namespace TON { public class GuideUI : UIBase { + public static GuideUI Instance => UIManager.Singleton.GetUI(UIList.GuideUI); + [SerializeField] private List guideList = new List(); private int index = 0; @@ -33,9 +35,10 @@ namespace TON public void HandleClickScreen() { - if (index == guideList.Count) + if (index == guideList.Count - 1) { UIManager.Hide(UIList.GuideUI); + return; }