//------------------------------------------------------------------------- // Interactible API //------------------------------------------------------------------------- /// <summary> /// What the object should do when interacted with. /// </summary> public override void OnInteract() { if (!interacting) { LoadDialog(); if (Dialog != null) { interacting = true; DialogManager.StartDialog(Dialog.graph); } } else { DialogManager.ContinueDialog(); if (DialogManager.IsDialogFinished()) { interacting = false; // This stops the player from hopping/twitching after the conversation // ends. Input.ResetInputAxes(); } } }
public override void OnInteract() { if (!interacting) { interacting = true; DialogManager.StartDialog(Cutscene); } else { DialogManager.ContinueDialog(); if (DialogManager.IsDialogFinished()) { interacting = false; } } }