_TheStrongestSnail/TheStrongestSnail/Assets/Scripts/Scene_main/main_kuangchang.cs

27 lines
650 B
C#
Raw Normal View History

2024-11-26 15:33:45 +08:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.SceneManagement;
2024-11-26 17:41:48 +08:00
public class main_kuangchang :main_shop
2024-11-26 15:33:45 +08:00
{
[Header("<22><>ת<EFBFBD><D7AA>ť")]
public Button JumpBtn;
[Header("<22><>ת<EFBFBD><D7AA><EFBFBD><EFBFBD><EFBFBD>ı<EFBFBD><C4B1><EFBFBD>")]
public int SceneIndex;
public override void Start()
{
JumpBtn.onClick.AddListener(() => asyncOnShopBTN(JumpBtn,SceneIndex));
}
public async void asyncOnShopBTN(Button BTN, int index)
{
await ButtonClickAnimationAsync(BTN.gameObject);
BTN.transform.GetComponent<main_RedDot>().HideRedDot();
SceneManager.LoadScene(index);
}
2024-11-26 15:33:45 +08:00
}