Exemple #1
0
        public override IEnumerator InitializeEnumerator(object param)
        {
            var windowPath = ExampleResourcePrefabPath.GetWindowPath(OutGameWindowType.HomeWindow.ToString());
            var screenPath = ExampleResourcePrefabPath.GetScreenPath(OutGameScreenType.HomeScreen.ToString());

            SceneLoader.LoadWindow(windowPath, screenPath);
            yield break;
        }
        private void SetEvent()
        {
            _view.BackButtonClickedEvent.AddListener(() => { DrillDownManager.Hide(() => { Debug.Log("HideComplete"); }); });

            _view.NextButtonClickedEvent.AddListener(() =>
            {
                DrillDownManager.Show(ExampleResourcePrefabPath.GetDrillDownViewerPath("DrillDownViewer1")
                                      , null
                                      , () => { Debug.Log("Show Complete"); });
            });
        }
 private void SetEvent()
 {
     _view.OnClickedMoveScreenAction   += MoveScreen;
     _view.OnClickedInGameButtonAction += () =>
     {
         SceneLoader.LoadWindow(
             ExampleResourcePrefabPath.GetWindowPath(OutGameWindowType.PreBattleWindow.ToString()),
             ExampleResourcePrefabPath.GetScreenPath(OutGameScreenType.PreBattleScreen.ToString())
             );
     };
 }
Exemple #4
0
        private void SetEvent()
        {
            _showDrillViewButton.onClick.AddListener(() =>
                                                     _manager.Show(ExampleResourcePrefabPath.GetDrillDownViewerPath("DrillDownViewer1"), null, () =>
            {
                Debug.Log("Show Complete");
            }));

            _clearButton.onClick.AddListener(() =>
            {
                _manager.Clear(() =>
                {
                    Debug.Log("Clear Complete");
                });
            });
        }
 private static void MoveScreen(OutGameScreenType type)
 {
     SceneLoader.LoadScreen(ExampleResourcePrefabPath.GetScreenPath(type.ToString()));
 }