불필요 비동기 제거
This commit is contained in:
parent
67e908bd8c
commit
de32443df9
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user