using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.EventSystems; public class ButtonEvenetL : BaseView { public InspectListPanel inspectPanle; public int buttonIndex = 0; public override void OnEnter(BaseEventData data) { if (InspectListPanel.taskIndex > 0) { buttonIndex = 1; inspectPanle.leftButton_show.gameObject.SetActive(true); } else { buttonIndex = 0; inspectPanle.leftButton_show.gameObject.SetActive(false); } } public override void OnExit(BaseEventData data) { buttonIndex = 0; inspectPanle.leftButton_show.gameObject.SetActive(false); } }