// Update is called once per frame void Update() { if (Input.GetKeyDown(KeyCode.E)) { if (NPC != null) { DialogController.Show(0); } } if (Input.GetKeyDown(KeyCode.Space)) { if (NPC != null) { DialogController.Next(); } } }
static public void Next() { instance.Next(instance.nextDialogId); }