From bec98caa29caca2cb08796eeaf782f033b2e7288 Mon Sep 17 00:00:00 2001 From: HaeinLEE Date: Mon, 21 Apr 2025 13:19:00 +0900 Subject: [PATCH] =?UTF-8?q?[Style]=20GetComponent=20null=EC=B2=B4=ED=81=AC?= =?UTF-8?q?=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/LIN/DailyRoutine/InteractionController.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Assets/LIN/DailyRoutine/InteractionController.cs b/Assets/LIN/DailyRoutine/InteractionController.cs index 1d40025b..beb1dc86 100644 --- a/Assets/LIN/DailyRoutine/InteractionController.cs +++ b/Assets/LIN/DailyRoutine/InteractionController.cs @@ -19,7 +19,10 @@ public class InteractionController : MonoBehaviour if (interactionLayerMask == (interactionLayerMask | (1 << other.gameObject.layer))) { ActionType interactionType = other.gameObject.GetComponent().RoutineEnter(); - PopActionOnScreen(interactionType); + if( interactionType != null ) + { + PopActionOnScreen(interactionType); + } } } @@ -91,6 +94,8 @@ public class InteractionController : MonoBehaviour } }); break; + default: + break; } } }