2024-11-15 15:13:21 +08:00
|
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
using System;
|
|
|
|
|
using DG.Tweening;
|
|
|
|
|
using UnityEngine.SceneManagement;
|
|
|
|
|
public class DepagodaBtn : MonoBehaviour
|
|
|
|
|
{
|
|
|
|
|
public static Action OnSceneMouseBTN;
|
|
|
|
|
public GameObject gotoscene;
|
|
|
|
|
public GameObject nowScene;
|
2024-11-17 01:54:23 +08:00
|
|
|
|
public Camera LockCamera;
|
2024-11-15 15:13:21 +08:00
|
|
|
|
// Start is called before the first frame update
|
|
|
|
|
void Start()
|
|
|
|
|
{
|
|
|
|
|
OnSceneMouseBTN += JUmpScem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void OnMouseDown()
|
|
|
|
|
{
|
|
|
|
|
//SceneManager.LoadScene(JumpScene.cultivation_Jinsha_mine_slices);
|
|
|
|
|
transform.DOScale(new Vector3(0.5f, 0.5f, 0.5f), 0.3f).SetEase(Ease.OutBack);
|
2024-11-17 01:54:23 +08:00
|
|
|
|
|
2024-11-15 15:13:21 +08:00
|
|
|
|
StartCoroutine("Magnify");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
IEnumerator Magnify()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
transform.DOScale(Vector3.one, 0.5f).SetEase(Ease.OutBack);
|
|
|
|
|
OnSceneMouseBTN();
|
|
|
|
|
|
|
|
|
|
yield return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void JUmpScem()
|
|
|
|
|
{
|
2024-11-17 01:54:23 +08:00
|
|
|
|
////Virtual_CameraManager.Instance.SwitchToCamera(1);
|
|
|
|
|
//Promptmgr.Instance.PromptBubble("<22><>δ<EFBFBD><CEB4><EFBFBD><EFBFBD>");
|
|
|
|
|
LockCamera.orthographicSize = 82;
|
|
|
|
|
gotoscene.SetActive(true);
|
|
|
|
|
nowScene.SetActive(false);
|
2024-11-15 15:13:21 +08:00
|
|
|
|
}
|
2024-12-24 17:44:00 +08:00
|
|
|
|
|
|
|
|
|
private void OnDestroy()
|
|
|
|
|
{
|
|
|
|
|
OnSceneMouseBTN -= JUmpScem;
|
|
|
|
|
}
|
2024-11-15 15:13:21 +08:00
|
|
|
|
}
|