void Update() { //dialogue inputs if (Input.GetKeyDown(KeyCode.Return)) { dialogueManager.NextAction(); } else if (dialogueManager.GetSpeaking()) { if (Input.GetKeyDown(KeyCode.DownArrow)) { dialogueManager.ChangeChoice(1); } else if (Input.GetKeyDown(KeyCode.UpArrow)) { dialogueManager.ChangeChoice(-1); } } else { playerController.TryToMove(); } }
public void OnPointerEnter(PointerEventData eventData) { dialogueManager.ChangeChoice(optionNumber); }