using System.Collections;
using System.Collections.Generic;
using Unity.VisualScripting;
using UnityEngine;
using UnityEngine.Events;
using UnityEngine.EventSystems;
public class NPC_Attach_Base : MonoBehaviour
{
//[HideInInspector]
//public NPCController header;
//[HideInInspector]
//public NPCController custom;
///
/// 工作票终结
///
public void SelectEndWorkTicket(WorkTicketType wType, UnityAction action = null)
{
switch (wType)
{
case WorkTicketType.低压工作票:
GameManager.UIMgr.ShowPanel(E_UI_Layer.Mid, p =>
{
action?.Invoke();
});
break;
case WorkTicketType.配电第一种工作票:
GameManager.UIMgr.ShowPanel(E_UI_Layer.Mid, p =>
{
action?.Invoke();
});
break;
case WorkTicketType.配电第二种工作票:
GameManager.UIMgr.ShowPanel(E_UI_Layer.Mid, p =>
{
action?.Invoke();
});
break;
}
}
///
/// 工作票显示
///
public void ShowWorkTicket(UnityAction action = null)
{
if (GameManager.MissionMgr.selectedWorkTicketType != WorkTicketType.无)
SelectEndWorkTicket(GameManager.MissionMgr.selectedWorkTicketType, action);
else
{
SelectEndWorkTicket(GameManager.MissionMgr.defaultWorkTicketType, action);
GameManager.UIMgr.GetPanel();
}
}
}