Browse Source

Fix #73 Switching dialogs on click causes text to skip

Ignore any previous click when a dialog is made visible.
master
chrisgregan 10 years ago
parent
commit
b0a7ed5858
  1. 8
      Assets/Fungus/Dialog/Scripts/Dialog.cs

8
Assets/Fungus/Dialog/Scripts/Dialog.cs

@ -61,6 +61,14 @@ namespace Fungus
{
dialogCanvas.gameObject.SetActive(visible);
}
if (visible)
{
// A new dialog is often shown as the result of a mouse click, so we need
// to make sure the previous click doesn't register on the new dialogue
wasPointerClicked = false;
clickCooldownTimer = 0.2f;
}
}
public virtual void SetCharacter(Character character, FungusScript fungusScript = null)

Loading…
Cancel
Save