|
|
@ -100,7 +100,7 @@ namespace Fungus |
|
|
|
case ClickMode.ClickAnywhere: |
|
|
|
case ClickMode.ClickAnywhere: |
|
|
|
if (Input.GetMouseButtonDown(0)) |
|
|
|
if (Input.GetMouseButtonDown(0)) |
|
|
|
{ |
|
|
|
{ |
|
|
|
SetNextLineFlag(); |
|
|
|
SetClickAnywhereClickedFlag(); |
|
|
|
} |
|
|
|
} |
|
|
|
break; |
|
|
|
break; |
|
|
|
case ClickMode.ClickOnDialog: |
|
|
|
case ClickMode.ClickOnDialog: |
|
|
@ -151,7 +151,23 @@ namespace Fungus |
|
|
|
{ |
|
|
|
{ |
|
|
|
nextLineInputFlag = true; |
|
|
|
nextLineInputFlag = true; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
|
|
/// Set the ClickAnywhere click flag. |
|
|
|
|
|
|
|
/// </summary> |
|
|
|
|
|
|
|
public virtual void SetClickAnywhereClickedFlag() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
if (ignoreClickTimer > 0f) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
ignoreClickTimer = nextClickDelay; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Only applies if ClickedAnywhere is selected |
|
|
|
|
|
|
|
if (clickMode == ClickMode.ClickAnywhere) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
SetNextLineFlag(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
/// <summary> |
|
|
|
/// <summary> |
|
|
|
/// Set the dialog clicked flag (usually from an Event Trigger component in the dialog UI). |
|
|
|
/// Set the dialog clicked flag (usually from an Event Trigger component in the dialog UI). |
|
|
|
/// </summary> |
|
|
|
/// </summary> |
|
|
|