new job selection menu
This commit is contained in:
@@ -6,6 +6,8 @@ public class UIManager : MonoBehaviour
|
||||
[SerializeField]
|
||||
public TimeSliderUI _timeSliderPrefab;
|
||||
[SerializeField]
|
||||
public JobSelectorUI _jobSelectorPrefab;
|
||||
[SerializeField]
|
||||
public GameObject _blurOverlay;
|
||||
|
||||
public static UIManager Instance { get; private set; }
|
||||
@@ -30,6 +32,14 @@ public class UIManager : MonoBehaviour
|
||||
timeSlider.ShowTimeSliderDialog(title, description, onCancel, onConfirm);
|
||||
}
|
||||
|
||||
public void ShowJobSelectionDialog(string title, string description, Action onCancel, Action<TimeSpan> onConfirm)
|
||||
{
|
||||
var jobSelector = Instantiate(_jobSelectorPrefab, transform);
|
||||
jobSelector.ShowJobSelectionDialog(title, description, onCancel, onConfirm);
|
||||
}
|
||||
|
||||
|
||||
|
||||
public void Freeze()
|
||||
{
|
||||
_blurOverlay.SetActive(true);
|
||||
|
||||
Reference in New Issue
Block a user