using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.EventSystems; using UnityEngine.SceneManagement; public class PassAnimation : MonoBehaviour, IPointerClickHandler { // Start is called before the first frame update void Start() { } // Update is called once per frame void Update() { } /// /// 点击跳过 /// /// public void OnPointerClick(PointerEventData eventData) { Debug.Log("可以跳转"); SceneManager.LoadScene("EndScene"); } }