불필요 비동기 제거

This commit is contained in:
NTG 2025-08-29 18:59:46 +09:00
parent 67e908bd8c
commit de32443df9

View File

@ -17,15 +17,13 @@ protected override void Start()
{ {
base.Start(); base.Start();
_ = Initialize(); Initialize();
} }
private Task Initialize() private void Initialize()
{ {
_restaurantPlayerDataSo = RestaurantData.Instance.PlayerData; _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.performed += OnInteractPerformed;
_restaurantPlayerDataSo.InteractAction.canceled += OnInteractCanceled; _restaurantPlayerDataSo.InteractAction.canceled += OnInteractCanceled;
@ -33,8 +31,6 @@ private Task Initialize()
_interactionLayerMask = _restaurantPlayerDataSo.InteractionLayerMask; _interactionLayerMask = _restaurantPlayerDataSo.InteractionLayerMask;
EventBus.Register<RestaurantInteractionEvent>(this); EventBus.Register<RestaurantInteractionEvent>(this);
return Task.CompletedTask;
} }
public override void InitializeSolvers() public override void InitializeSolvers()