public void OnClick_ColonyGames() { ColonyGamesPopup popup = ColonyGamesPopup.Create(Show); popup.Show(); Hide(); }
/// <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); }