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.OnClickedMoveScreenAction += MoveScreen; _view.OnClickedInGameButtonAction += () => { SceneLoader.LoadWindow( ExampleResourcePrefabPath.GetWindowPath(OutGameWindowType.PreBattleWindow.ToString()), ExampleResourcePrefabPath.GetScreenPath(OutGameScreenType.PreBattleScreen.ToString()) ); }; }