Firstborn/Assets/RPG Creation Kit/Scripts/Save System/UI/OverwriteAlertPanel.cs
Schaken-Mods 959e80cf72 assets upload
assets upload description.
2023-03-28 12:16:30 -05:00

35 lines
865 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TMPro;
using RPGCreationKit;
using UnityEngine.EventSystems;
namespace RPGCreationKit
{
public class OverwriteAlertPanel : MonoBehaviour
{
public TextMeshProUGUI description;
public GameObject previouslySelectedObject;
public void OnConfirm()
{
if(RckInput.isUsingGamepad)
{
if(previouslySelectedObject != null)
EventSystem.current.SetSelectedGameObject(previouslySelectedObject);
}
}
public void OnCancel()
{
if (RckInput.isUsingGamepad)
{
if (previouslySelectedObject != null)
EventSystem.current.SetSelectedGameObject(previouslySelectedObject);
}
}
}
}