12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using UnityEngine.EventSystems;
- public enum LineDir {
- Out,
- In
- };
- public enum ZYTime
- {
- Before,
- After,
- };
- public class LinePath : MonoBehaviour,IPointerEnterHandler,IPointerExitHandler
- {
- public LineDir lineDir;
- public string startPos;
- public string endPos;
- public string linePathContent;
- public int manNum;
- public int homeNum;
- public int completeNum;
- public string dateTime;
- public void OnPointerEnter(PointerEventData eventData)
- {
- if (RKZYLayer.lineInfoStatic) {
- RKZYLayer.lineInfoStatic.SetData(this);
- RKZYLayer.lineInfoStatic.GetComponent<RectTransform>().anchoredPosition = this.GetComponent<RectTransform>().anchoredPosition;
- RKZYLayer.lineInfoStatic.linePaths.Add(this);
- }
- }
- public void OnPointerExit(PointerEventData eventData)
- {
- if (RKZYLayer.lineInfoStatic)
- {
- RKZYLayer.lineInfoStatic.linePaths.Remove(this);
- }
- }
- }
|