From c992e25391989ffd2adb533e39c1ef1d70663c15 Mon Sep 17 00:00:00 2001 From: Yogi <1273750265@qq.com> Date: Fri, 10 Jan 2025 12:00:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8D=E5=86=8D=E4=BD=BF=E7=94=A8=E6=BA=B6?= =?UTF-8?q?=E8=A7=A3=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Scripts/Main.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Assets/Scripts/Main.cs b/Assets/Scripts/Main.cs index 5fd7732..ebe58ce 100644 --- a/Assets/Scripts/Main.cs +++ b/Assets/Scripts/Main.cs @@ -196,8 +196,9 @@ public class Main : MonoBehaviour private void SetCarActive(GameObject go, bool isActive) { - Debug.Log($"SetCarActive ({go.name}) ({isActive})"); - this.StartCoroutine(SetCarActiveCoroutine(go, isActive, .5f)); + go.SetActive(isActive); + // Debug.Log($"SetCarActive ({go.name}) ({isActive})"); + // this.StartCoroutine(SetCarActiveCoroutine(go, isActive, .5f)); } private IEnumerator SetCarActiveCoroutine(GameObject go, bool isActive, float time)