Пример #1
0
        public IEnumerator RegisterScreen_WhenWindowWithPropertiesRegistered_ScreenIsRegistered()
        {
            uiFrame.Initialize();
            WindowWithProperties windowPrefab = AssetDatabase.LoadAssetAtPath <WindowWithProperties>(WindowWithPropertiesPath);

            uiFrame.RegisterScreen(windowPrefab);

            Assert.IsTrue(uiFrame.IsScreenRegistered <WindowWithProperties>());
            yield return(null);
        }
Пример #2
0
        public IEnumerator ShowScreen_WhenWindowWithPropertiesRegistered_ShowScreen()
        {
            uiFrame.Initialize();
            WindowWithProperties windowPrefab = AssetDatabase.LoadAssetAtPath <WindowWithProperties>(WindowWithPropertiesPath);

            uiFrame.RegisterScreen(windowPrefab);

            uiFrame.ShowScreen <WindowWithProperties>();

            Assert.IsTrue(uiFrame.CurrentWindow.GetType() == typeof(WindowWithProperties));
            yield return(null);
        }