add school
This commit is contained in:
@@ -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}");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user