25 lines
679 B
C#
25 lines
679 B
C#
using UnityEngine;
|
|
|
|
public class OfficeTable : BaseInteractableObject
|
|
{
|
|
[SerializeField]
|
|
private DialogCategorySO _dialogOptionsSO;
|
|
[SerializeField]
|
|
private DialogSO _dialogSO;
|
|
protected override void PrepareMenuActions()
|
|
{
|
|
_menuActions[RadialMenuActions.Talk].IsEnabled = true;
|
|
}
|
|
|
|
protected override void InteractAction(RadialMenuActions interactAction)
|
|
{
|
|
GameManager.Instance.UI.ShowTabObtionsDialog(_dialogSO, null, OnConfirm);
|
|
}
|
|
|
|
private void OnConfirm(JobInfoSO selectedJob)
|
|
{
|
|
_player.JobPosition = selectedJob.JobPosition;
|
|
print($"player selected position is {_player.JobPosition}");
|
|
}
|
|
}
|