player can work now
This commit is contained in:
@@ -1,15 +1,20 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
using static UnityEditor.Experimental.GraphView.GraphView;
|
||||
|
||||
public class OfficeTable : BaseInteractableObject
|
||||
{
|
||||
[SerializeField]
|
||||
private JobsListSO _jobPositionsSO;
|
||||
|
||||
|
||||
public override void Interact(Player player)
|
||||
{
|
||||
UIManager.Instance.ShowJobSelectionDialog("Job agency", "job offers", null, null);
|
||||
base.Interact(player);
|
||||
UIManager.Instance.ShowJobSelectionDialog("Job agency", "job offers", null, OnConfirm);
|
||||
}
|
||||
|
||||
|
||||
private void OnConfirm()
|
||||
{
|
||||
_player.JobPosition = JobPositions.Clerk;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user