From de32443df9451ab3b94d08d4420b31c365084062 Mon Sep 17 00:00:00 2001 From: NTG Date: Fri, 29 Aug 2025 18:59:46 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B6=88=ED=95=84=EC=9A=94=20=EB=B9=84?= =?UTF-8?q?=EB=8F=99=EA=B8=B0=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Restaurant/Character/Player/PlayerInteraction.cs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Assets/_DDD/_Scripts/Restaurant/Character/Player/PlayerInteraction.cs b/Assets/_DDD/_Scripts/Restaurant/Character/Player/PlayerInteraction.cs index b22e70148..cdd7cf089 100644 --- a/Assets/_DDD/_Scripts/Restaurant/Character/Player/PlayerInteraction.cs +++ b/Assets/_DDD/_Scripts/Restaurant/Character/Player/PlayerInteraction.cs @@ -17,15 +17,13 @@ protected override void Start() { base.Start(); - _ = Initialize(); + Initialize(); } - private Task Initialize() + private void Initialize() { _restaurantPlayerDataSo = RestaurantData.Instance.PlayerData; - Debug.Assert(_restaurantPlayerDataSo != null, "_restaurantPlayerDataSo is null"); - - _restaurantPlayerDataSo!.InteractAction = InputManager.Instance.GetAction(InputActionMaps.Restaurant, nameof(RestaurantActions.Interact)); + _restaurantPlayerDataSo.InteractAction = InputManager.Instance.GetAction(InputActionMaps.Restaurant, nameof(RestaurantActions.Interact)); _restaurantPlayerDataSo.InteractAction.performed += OnInteractPerformed; _restaurantPlayerDataSo.InteractAction.canceled += OnInteractCanceled; @@ -33,8 +31,6 @@ private Task Initialize() _interactionLayerMask = _restaurantPlayerDataSo.InteractionLayerMask; EventBus.Register(this); - - return Task.CompletedTask; } public override void InitializeSolvers()