protected IEnumerator EndSpeakCoroutine() { ChangeText(TextManager.GetText(InteractablePNJ.DialoguesDatabase[_speakingNPC.TxtInfo.NPCText].outroText)); bool receiveTouch = false; while (!receiveTouch) { if (Input.GetKeyDown(KeyCode.Mouse0)) { receiveTouch = true; } if (Input.touchCount > 1) { receiveTouch = true; } yield return(null); } selectedTopic = null; speakingPos = Vector3.zero; Events.Instance.Raise(new OnEndSpeakingNPC()); UIManager.instance.PNJState.pnj = _speakingNPC; UIManager.instance.PNJState.SetTarget(PlayerManager.Instance.GetNearestNPCIcon()); UIManager.instance.PNJState.Active(true); NotePad.Instance.endInfo.gameObject.SetActive(false); _speakingNPC = null; Show(false); }
public void LinkTopic(NotepadTopic topic) { selectedTopic = topic; }