31 lines
639 B
C#
31 lines
639 B
C#
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()
|
|
{
|
|
|
|
}
|
|
|
|
/// <summary>
|
|
/// 点击跳过
|
|
/// </summary>
|
|
/// <param name="eventData"></param>
|
|
public void OnPointerClick(PointerEventData eventData)
|
|
{
|
|
Debug.Log("可以跳转");
|
|
SceneManager.LoadScene("EndScene");
|
|
}
|
|
}
|