예제 #1
0
        public void Previous()
        {
            if (currentWindowIndex > 0)
            {
                currentWindowIndex--;

                if (currentWindow != null)
                {
                    currentWindow.Close();
                }

                currentWindow = MenuWindows[currentWindowIndex];

                if (currentWindow != null)
                {
                    currentWindow.gameObject.SetActive(true);
                    currentWindow.Open();
                }
            }
        }
예제 #2
0
        public void Next()
        {
            if (currentWindowIndex < MenuWindows.Count - 1)
            {
                currentWindowIndex++;

                if (currentWindow != null)
                {
                    currentWindow.Close();
                }

                currentWindow = MenuWindows[currentWindowIndex];

                if (currentWindow != null)
                {
                    currentWindow.gameObject.SetActive(true);
                    currentWindow.Open();
                }
            }
        }