24 lines
463 B
C#
24 lines
463 B
C#
using Obvious.Soap;
|
|
using UnityEngine;
|
|
|
|
public class UI_ModalProfileLoad : MonoBehaviour
|
|
{
|
|
[SerializeField]
|
|
private ScriptableEventString On_ModalProfileLoad_ConfirmClicked;
|
|
|
|
private string profileToLoad;
|
|
|
|
public void OnLoadSlotLoadClicked(string profileToLoad)
|
|
{
|
|
this.profileToLoad = profileToLoad;
|
|
}
|
|
|
|
public void OnConfirmClicked()
|
|
{
|
|
if (!string.IsNullOrEmpty(profileToLoad))
|
|
{
|
|
On_ModalProfileLoad_ConfirmClicked.Raise(profileToLoad);
|
|
}
|
|
}
|
|
}
|