Fixed Fungus Lua setcharacter bug #503
@ -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 == "")
{
if (currentCharacterImage == null)
// Character image is hidden by default.