using System; using DefaultNamespace.ProcessMode; using Newtonsoft.Json; using System.Collections.Generic; using System.Linq; using DefaultNamespace; using MotionFramework; using TMPro; using UnityEngine; using UnityEngine.UI; using static InterfaceManager; /// /// 不良行为处理 /// public class Delivery_BadBehavior : MonoBehaviour { /// /// 确定按钮 /// private Button confirmBtn; /// /// 清单按钮 /// private Button inventoryBtn; /// /// 清单图片 /// private Image inventoryImg; /// /// 选项组 /// private ToggleGroup options; /// /// 问题提示 /// private TextMeshProUGUI questionStem; /// /// 问题类型 /// private TextMeshProUGUI questionTypes; /// /// 选项 /// private List toggles; /// /// 不良行为数据 /// private List badBehaviorDatas; /// /// 当前题号 /// public int step; public bool isGuiding = false; public bool isGuiding2 = false; public static Delivery_BadBehavior Instance; private void Awake() { Instance = this; } private void Start() { Init(); } public void Init() { //FindObjectByName("不良行为清单Canvas").gameObject.SetActive(true); badBehaviorDatas = MyJsonManager.LoadListData("DeliveryData/不良行为处理"); questionTypes = FindObjectByName("questionTypes"); questionStem = FindObjectByName("questionStem"); inventoryBtn = FindObjectByName