public static LoadGameView Open(System.Action onLoadCompleteDelegate, string loadingBGTextureName = null) { LoadGameView loadGameView = UIMgr.instance.Open <LoadGameView>(PREFAB_PATH); loadGameView._onLoadCompleteDelegate = onLoadCompleteDelegate; loadGameView._loadingBGTextureName = loadingBGTextureName; return(loadGameView); }
public LoadGameView OpenLoadGameView() { Logic.UI.LoadGame.View.LoadGameView loadGameView = UI.UIMgr.instance.Get <Logic.UI.LoadGame.View.LoadGameView>(Logic.UI.LoadGame.View.LoadGameView.PREFAB_PATH); if (loadGameView == null) { loadGameView = UI.UIMgr.instance.Open <Logic.UI.LoadGame.View.LoadGameView>(Logic.UI.LoadGame.View.LoadGameView.PREFAB_PATH); } return(loadGameView); }