Browse Source

Use transform.Find instead of deprecated transform.FindChild

master
Christopher 8 years ago
parent
commit
02ea0fa566
  1. 2
      Assets/Tests/Narrative/PortraitFlipTest.cs

2
Assets/Tests/Narrative/PortraitFlipTest.cs

@ -8,7 +8,7 @@ public class PortraitFlipTest : MonoBehaviour {
void Update ()
{
Transform t = gameObject.transform.FindChild("Canvas/JohnCharacter");
Transform t = gameObject.transform.Find("Canvas/JohnCharacter");
if (t == null)
{

Loading…
Cancel
Save