public void FinishSpeech() { Managers.UI.ClosePopupUI(_speechBox); _npc.GetComponent <ObjData>().Talking(false); _isTalking = false; _speechBox = null; _npc = null; }
//F키를 눌렀을때 실행. public void SpeakWithNpc(int mNpcID = 0) { mNpcID += OnQuest(mNpcID); //첫 대화인것. if (_speechBox == null && mNpcID != 0) { _isTalking = true; _NpcID = mNpcID; _speechBox = Managers.UI.ShowPopupUI <UI_SpeechBox>("UI_Speech"); _screenPlayIndex = 0; } //대화가 끝났다는 것. if (Managers.Data.NpcDict[_NpcID].screenPlay.Length == _screenPlayIndex) { //_NpcID, _screenPlayIndex FinishSpeech(); return; } _speechBox.TalkingAction(_NpcID, _screenPlayIndex); }