implement simple learning process

This commit is contained in:
Vova
2023-12-19 19:22:26 +02:00
parent 22149e24c8
commit 0f60b41d58
11 changed files with 84 additions and 31 deletions
@@ -0,0 +1,23 @@
using Assets.Scripts.Interfaces;
using UnityEngine;
public class OfficeTable : BaseInteractableObject
{
[SerializeField]
private DialogSO _dialogSO;
protected override void PrepareMenuActions()
{
_menuActions[RadialMenuActions.Talk].IsEnabled = true;
}
protected override void InteractAction(RadialMenuActions interactAction)
{
GameManager.Instance.UI.ShowTabOptionsDialog(_dialogSO, null, OnConfirm);
}
private void OnConfirm(IDialogOption selectedJob)
{
_player.JobPosition = (selectedJob as JobInfoSO).JobPosition;
print($"player selected position is {_player.JobPosition}");
}
}