using System.Collections; using System.Collections.Generic; using System.Linq; using UnityEngine; using UnityEngine.EventSystems; public class InspectListButtonEvent : BaseView { private InspectListPanel inspectListPanel; public string str = "clickBar"; private FunctionInfo _engineeringFunction; public override void Start() { isSelect = false; AddEvent(); inspectListPanel = GameObject.Find("Notebook_grounp").GetComponent(); } public override void OnClick(BaseEventData data) { Debug.Log("点击===》OnClick"); InspectListPanel.taskIndex = int.Parse(this.gameObject.GetComponent().text_num.text) - 1; Debug.Log("点击=1==》OnClick"); inspectListPanel.ShowHandleClick(InspectListPanel.taskIndex); Debug.Log("点击=2==》OnClick"); } }