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()