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) { InspectListPanel.taskIndex = int.Parse(this.gameObject.GetComponent().text_num.text) - 1; inspectListPanel.ShowHandleClick(InspectListPanel.taskIndex); } }