using System.Collections; using System.Collections.Generic; using TMPro; using UnityEngine; using UnityEngine.EventSystems; using UnityEngine.UI; public class PhotoScroll_bt : MonoBehaviour, IBeginDragHandler, IEndDragHandler { public ScrollRect scrollRect; private Vector2 startDragPos; [SerializeField] TextMeshProUGUI 相片總數_tb, 相片目前_tb, 報告書號_tb, 文件號_tb; [SerializeField] GameObject 前一張_bt, 後一張_bt; private float currentPage = 0; public float swipeThreshold = 200f; public static bool currentPageChange; void Start() { // 綁定按鈕事件 前一張_bt.GetComponent