示例#1
0
        public void OnClick_Tutorials()
        {
            TutorialsPopup popup = TutorialsPopup.Create(Show);

            popup.Show();

            Hide();
        }
示例#2
0
        /// <summary>
        /// Creates the "Tutorials" popup.
        /// </summary>
        public static TutorialsPopup Create(System.Action onCloseCB)
        {
            GameObject     goPopup = Instantiate(Resources.Load <GameObject>(_PrefabPath));
            TutorialsPopup popup   = goPopup.GetComponent <TutorialsPopup>();

            popup._OnCloseCB = onCloseCB;

            return(popup);
        }