void Start() { var screenList = GetComponent <ScreenList>(); screenList.InstantiateAndRegisterScreens(uiFrame); // do NOT do this in Awake (or disable Initialize On Awake in uiFrame and Initialize yourself) uiFrame.OpenWindow(ScreenList.loadingWindow); }
private void OnAsteroidClick(DataViewer data) { var payload = new AstDataProperty(data); var strtest = payload._data.Name.text; uiFrame.OpenWindow("AstDataWindow", payload); astDataCheck = data.Name.text; }
private void Start() { uiFrame.OpenWindow(ScreenIds.StartGameWindow); }
private void Start() { uiFrame.OpenWindow(ScreenUtils.IsLandscape ? ScreenIds.TapToPlayWindow : ScreenIds.TapToPlayWindowV); }