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

            popup.Show();

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

            popup._OnCloseCB = onCloseCB;

            return(popup);
        }