From 02ea0fa5667c4b84e8a32da72bae0507ce953745 Mon Sep 17 00:00:00 2001 From: Christopher Date: Wed, 17 May 2017 21:08:30 +0100 Subject: [PATCH] Use transform.Find instead of deprecated transform.FindChild --- Assets/Tests/Narrative/PortraitFlipTest.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Tests/Narrative/PortraitFlipTest.cs b/Assets/Tests/Narrative/PortraitFlipTest.cs index 6bab3969..0396e7d2 100644 --- a/Assets/Tests/Narrative/PortraitFlipTest.cs +++ b/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) {