Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
BDeshiDev committed May 8, 2024
2 parents 0317a7c + 149800d commit f7f48e3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ public class DialogueSystem : MonoBehaviour
/// Subscribe to this to know when dialogue completed
/// </summary>
public DialogueLineEvent DialogueLineCompleted;


void Awake()
{
Expand All @@ -65,7 +64,6 @@ public void InitializeDialogueGraph(DialogueGraph newGraph)
_currentGraph = newGraph;
}


/// <summary>
/// Start playing dialogue and it Fires the Start event
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ public override async UniTask Play()
Core.DialogueSystem.Instance.DialogueLineStarted?.Invoke(this);
while (!_canAdvanceDialogue)
{
//at this point, we are showing dialogue with ShouldShowLineWhenSkipped = true
if (Core.DialogueSystem.Instance.IsSkipActive)
{
await UniTask.Delay(TimeSpan.FromSeconds(Core.DialogueSystem.Instance.ShowLineDurationWhenSkipping));
Expand Down

0 comments on commit f7f48e3

Please sign in to comment.