|
|
@ -32,10 +32,15 @@ namespace Fungus |
|
|
|
SayDialog dialog = SetSayDialog.activeDialog; |
|
|
|
SayDialog dialog = SetSayDialog.activeDialog; |
|
|
|
showBasicGUI = false; |
|
|
|
showBasicGUI = false; |
|
|
|
if (dialog == null) |
|
|
|
if (dialog == null) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
// Try to get any SayDialog in the scene |
|
|
|
|
|
|
|
dialog = GameObject.FindObjectOfType<SayDialog>(); |
|
|
|
|
|
|
|
if (dialog == null) |
|
|
|
{ |
|
|
|
{ |
|
|
|
showBasicGUI = true; |
|
|
|
showBasicGUI = true; |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
dialog.SetCharacter(character); |
|
|
|
dialog.SetCharacter(character); |
|
|
|
|
|
|
|
|
|
|
|