Browse Source

Fixed Fungus Lua setcharacter bug #503

master
Christopher 9 years ago
parent
commit
deeb5259e6
  1. 8
      Assets/Fungus/Narrative/Scripts/SayDialog.cs
  2. 1395
      Assets/Tests/Lua/FungusTests.unity

8
Assets/Fungus/Narrative/Scripts/SayDialog.cs

@ -132,10 +132,14 @@ namespace Fungus
gameObject.AddComponent<GraphicRaycaster>();
}
SetCharacterName("", Color.white);
// It's possible that SetCharacterImage() has already been called from the
// Start method of another component, so check that no image has been set yet.
// Same for nameText.
if (nameText.text == "")
{
SetCharacterName("", Color.white);
}
if (currentCharacterImage == null)
{
// Character image is hidden by default.

1395
Assets/Tests/Lua/FungusTests.unity

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save