Ejemplo n.º 1
0
        protected override IEnumerator EventRoutine()
        {
            /// 플레이어에게 이동
            yield return(StartCoroutine(MoveToPlayerRoutine()));

            Talk(false);
            yield return(WaitUntillTalkEnd());

            string pokemon = "C++";

            _pokemonSelector._pokemonRegisterAction.AddListener((data) => { pokemon = data; });
            _pokemonSelector.StartSelecting();
            yield return(WaitUntilSelectEnd());

            PokemonBattleManager.Instance.StartBattle(pokemon, "동방컴");
            yield return(WaitUntilBattleEnd());

            List <DialoguePage> textPages = new List <DialoguePage>();

            textPages.Add(DialoguePage.CreatePage("코딩하느라 고생했어. 와! 정말 잘 만들었는걸"));
            textPages.Add(DialoguePage.CreatePage("잠시 의자에 앉아서 기다려줄래? 지원서를 찾아야해서"));
            textPages.Add(DialoguePage.CreatePage("뭐? 관심없다고? 에이 팅기지말고 기다려봐"));
            _textPages = textPages;
            Talk(false);
            yield return(WaitUntillTalkEnd());

            yield return(new WaitForSeconds(1f));

            LoadingSceneManager.LoadScene("동방");
            yield break;
        }
Ejemplo n.º 2
0
        private void AddNextPage()
        {
            // 텍스트 추가
            List <DialoguePage> list = new List <DialoguePage>();

            for (int i = 0; i < _pages.Count; i++)
            {
                list.Add(DialoguePage.CreatePage(_pages[i]._text, _pages[i]._delay, _pages[i]._duration));
            }

            _introDialogue._textPages = list;

            // 이미지 추가
            _animImage.SpriteInitialize(_pages.Count);

            for (int i = 0; i < _pages.Count; i++)
            {
                _animImage.AddNext(_pages[i]._sprite, i);
            }
        }