2024-11-26 15:33:45 +08:00
|
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using UnityEngine;
|
2024-12-05 14:29:27 +08:00
|
|
|
|
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
|
|
|
|
{
|
2024-12-05 14:29:27 +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
|
|
|
|
}
|