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