refactor interact system

interact only after PopupItemMenu button clicked
This commit is contained in:
Vova
2023-11-16 16:11:39 +02:00
parent c2bb35a46d
commit 1774ab5b18
12 changed files with 100 additions and 61 deletions
@@ -7,9 +7,8 @@ public class OfficeTable : BaseInteractableObject
[SerializeField]
private JobsListSO _jobPositionsSO;
public override void Interact(Player player)
protected override void InteractAction()
{
base.Interact(player);
UIManager.Instance.ShowJobSelectionDialog("Job agency", null, OnConfirm);
}