비동기 호출 및 레퍼런스 비교 변경
This commit is contained in:
parent
9632879fe0
commit
19c2580dc7
@ -225,7 +225,7 @@ private void ApplyOutlineType(InteractionOutlineType type)
|
|||||||
|
|
||||||
private bool IsPlayerFocusing()
|
private bool IsPlayerFocusing()
|
||||||
{
|
{
|
||||||
return _interactor?.GetFocusedInteractable() == _interactionComponent;
|
return ReferenceEquals(_interactor?.GetFocusedInteractable(), _interactionComponent);
|
||||||
}
|
}
|
||||||
|
|
||||||
private bool CanExecuteInteraction()
|
private bool CanExecuteInteraction()
|
||||||
|
@ -9,7 +9,7 @@ public bool ExecuteInteraction(IInteractor interactor, IInteractable interactabl
|
|||||||
{
|
{
|
||||||
if (CanExecuteInteraction() == false) return false;
|
if (CanExecuteInteraction() == false) return false;
|
||||||
|
|
||||||
GameFlowManager.Instance.ChangeFlow(GameFlowState.RunRestaurant);
|
_ = GameFlowManager.Instance.ChangeFlow(GameFlowState.RunRestaurant);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user