fixed bug in barks, that was causing UI to disappear to early, fixed issue with bark time calculation, triggers adjustments
This commit is contained in:
@@ -205,10 +205,11 @@ namespace PixelCrushers.DialogueSystem
|
||||
SetUIElementsActive(true);
|
||||
if (CanTriggerAnimations() && !string.IsNullOrEmpty(animationTransitions.showTrigger))
|
||||
{
|
||||
animator.ResetTrigger(animationTransitions.hideTrigger);
|
||||
animator.SetTrigger(animationTransitions.showTrigger);
|
||||
}
|
||||
CancelInvoke("Hide");
|
||||
var barkDuration = Mathf.Approximately(0, duration) ? DialogueManager.GetBarkDuration(subtitleText) : duration;
|
||||
var barkDuration = Math.Max(DialogueManager.GetBarkDuration(subtitleText) ,duration);
|
||||
if (!(waitUntilSequenceEnds || waitForContinueButton)) Invoke("Hide", barkDuration);
|
||||
if (waitUntilSequenceEnds) numSequencesActive++;
|
||||
doneTime = waitForContinueButton ? Mathf.Infinity : (DialogueTime.time + barkDuration);
|
||||
|
||||
Reference in New Issue
Block a user