using DefaultNamespace.ProcessMode;
using Framework.Manager;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;
using static InterfaceManager;
///
/// 盖章确认
///
public class UI_StampConfirmation : MonoBehaviour, IPointerClickHandler
{
///
/// 是否已经盖章确认
///
public bool IsClick = false;
///
/// 自身的文本
///
private Text text;
///
/// 校验
///
private Button check;
///
/// 取消校验
///
private Button cancelcheck;
///
/// 分数
///
public int scroe;
///
/// 红色盖章
///
private GameObject circle;
public void OnPointerClick(PointerEventData eventData)
{
//判断是否右键点击该检查点
if (eventData.button == PointerEventData.InputButton.Right)
{
UI_StampConfirmationManager.Instance.Checkobject.transform.position = Input.mousePosition;
UI_StampConfirmationManager.Instance.Checkobject.SetActive(true);
check.onClick.RemoveAllListeners();
cancelcheck.onClick.RemoveAllListeners();
check.onClick.AddListener(() =>
{
IsClick = true;
LoadTriggerNextGuide();
//MotionFramework.MotionEngine.GetModule().HandleClick("");
circle.SetActive(true);
});
cancelcheck.onClick.AddListener(() =>
{
IsClick = false;
circle.SetActive(false);
});
}
}
void Start()
{
text = GetComponent();
check = UI_StampConfirmationManager.Instance.Checkobject.transform.GetChild(0).GetComponent