InspectListButtonEvent.cs 759 B

123456789101112131415161718192021222324252627
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using UnityEngine;
  5. using UnityEngine.EventSystems;
  6. public class InspectListButtonEvent : BaseView
  7. {
  8. private InspectListPanel inspectListPanel;
  9. public string str = "clickBar";
  10. private FunctionInfo _engineeringFunction;
  11. public override void Start()
  12. {
  13. isSelect = false;
  14. AddEvent();
  15. inspectListPanel = GameObject.Find("Notebook_grounp").GetComponent<InspectListPanel>();
  16. }
  17. public override void OnClick(BaseEventData data)
  18. {
  19. InspectListPanel.taskIndex = int.Parse(this.gameObject.GetComponent<InspectList_Button>().text_num.text) - 1;
  20. inspectListPanel.ShowHandleClick(InspectListPanel.taskIndex);
  21. }
  22. }