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