22 lines
571 B
C#
22 lines
571 B
C#
using System;
|
|
using UnityEngine;
|
|
using static UnityEditor.Experimental.GraphView.GraphView;
|
|
|
|
public class OfficeTable : BaseInteractableObject
|
|
{
|
|
[SerializeField]
|
|
private JobsListSO _jobPositionsSO;
|
|
|
|
public override void Interact(Player player)
|
|
{
|
|
base.Interact(player);
|
|
UIManager.Instance.ShowJobSelectionDialog("Job agency", null, OnConfirm);
|
|
}
|
|
|
|
private void OnConfirm(JobInfoSO selectedJob)
|
|
{
|
|
_player.JobPosition = selectedJob.JobPosition;
|
|
print($"player selected position is {_player.JobPosition}");
|
|
}
|
|
}
|