完成所有UI界面的切换

This commit is contained in:
liuliang 2024-11-24 23:18:10 +08:00
parent a2225041ca
commit a56a2add03
3 changed files with 509 additions and 236 deletions

File diff suppressed because it is too large Load Diff

View File

@ -9,6 +9,8 @@ public class GameSceneBtn : MonoBehaviour
public static Action OnSceneMouseBTN; public static Action OnSceneMouseBTN;
private SceneSpriteAniationPro aniationPro; private SceneSpriteAniationPro aniationPro;
float time; float time;
public GameObject gotoscene;
public GameObject nowScene;
// Start is called before the first frame update // Start is called before the first frame update
void Start() void Start()
{ {
@ -34,8 +36,8 @@ public class GameSceneBtn : MonoBehaviour
void JUmpScem() void JUmpScem()
{ {
Debug.Log("===="); gotoscene.SetActive(true);
Promptmgr.Instance.PromptBubble("ÔÝδżŞˇĹ"); nowScene.SetActive(false);
} }
private void Update() private void Update()

View File

@ -11,14 +11,14 @@ public class jinTols : MonoBehaviour
public void OnMouseDown() public void OnMouseDown()
{ {
//SceneManager.LoadScene(JumpScene.cultivation_Jinsha_mine_slices); //SceneManager.LoadScene(JumpScene.cultivation_Jinsha_mine_slices);
transform.DOScale(new Vector3(0.5f, 0.5f, 0.5f), 0.3f).SetEase(Ease.OutBack); //transform.DOScale(new Vector3(0.5f, 0.5f, 0.5f), 0.3f).SetEase(Ease.OutBack);
StartCoroutine("Magnify"); StartCoroutine("Magnify");
} }
IEnumerator Magnify() IEnumerator Magnify()
{ {
transform.DOScale(Vector3.one, 0.5f).SetEase(Ease.OutBack); // transform.DOScale(Vector3.one, 0.5f).SetEase(Ease.OutBack);
gotoscene.SetActive(true); gotoscene.SetActive(true);
nowScene.SetActive(false); nowScene.SetActive(false);