Cute_demon_attacks/meng_yao/Assets/script/JumpScene/JinshaBtn.cs
2024-10-28 22:05:14 +08:00

28 lines
588 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
using System;
public class JinshaBtn : MonoBehaviour
{
public static Action OnSceneMouseBTN;
// Start is called before the first frame update
void Start()
{
OnSceneMouseBTN += JUmpScem;
}
private void OnMouseDown()
{
//SceneManager.LoadScene(JumpScene.cultivation_Jinsha_mine_slices);
OnSceneMouseBTN();
}
void JUmpScem()
{
SceneManager.LoadScene(JumpScene.cultivation_Jinsha_mine_slices);
}
}