add school

This commit is contained in:
Vova
2023-12-18 22:23:48 +02:00
parent 2399e99c68
commit d9b84788e1
42 changed files with 1572 additions and 24 deletions
@@ -1,9 +1,8 @@
using Assets.Scripts.Interfaces;
using UnityEngine;
public class OfficeTable : BaseInteractableObject
{
[SerializeField]
private DialogCategorySO _dialogOptionsSO;
[SerializeField]
private DialogSO _dialogSO;
protected override void PrepareMenuActions()
@@ -16,9 +15,9 @@ public class OfficeTable : BaseInteractableObject
GameManager.Instance.UI.ShowTabObtionsDialog(_dialogSO, null, OnConfirm);
}
private void OnConfirm(JobInfoSO selectedJob)
private void OnConfirm(IDialogOption selectedJob)
{
_player.JobPosition = selectedJob.JobPosition;
_player.JobPosition = (selectedJob as JobInfoSO).JobPosition;
print($"player selected position is {_player.JobPosition}");
}
}
@@ -5,8 +5,6 @@ public class SecretaryDesk : BaseInteractableObject
{
[SerializeField]
private DialogSO _dialogSO;
[SerializeField]
private DialogCategorySO _dialogOptionsSO;
protected override void PrepareMenuActions()
{
@@ -21,6 +19,6 @@ public class SecretaryDesk : BaseInteractableObject
private void OnConfirm(IDialogOption selectedOption)
{
//_player.JobPosition = (selectedOption as EducationInfoSO).JobPosition;
print($"player selected position is {_player.JobPosition}");
print($"player selected position is {(selectedOption as EducationInfoSO).Description}");
}
}