Browse Source

Fixed TextAdapter to handle null text GameObject

master
Chris Gregan 6 years ago
parent
commit
60c3d5d356
  1. 5
      Assets/Fungus/Scripts/Utils/TextAdapter.cs

5
Assets/Fungus/Scripts/Utils/TextAdapter.cs

@ -18,6 +18,11 @@ namespace Fungus
public void InitFromGameObject(GameObject go, bool includeChildren = false)
{
if (go == null)
{
return;
}
if (!includeChildren)
{
textUI = go.GetComponent<Text>();

Loading…
Cancel
Save