Cute_demon_attacks/meng_yao/Assets/script/scene_Main/DownPanel.cs
wulongxiao 2e2191249d add
2024-12-13 05:40:51 +08:00

25 lines
597 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
public class DownPanel : Base
{
public List<Button> btns = new List<Button>();
public List<GameObject> PanelList=new List<GameObject>();
public GameObject canvse;
// Start is called before the first frame update
void Start()
{
btns[0].onClick.AddListener(async() => {
await ButtonClickAnimationAsync(btns[0].gameObject);
GameObject.Instantiate(PanelList[0], canvse.transform);
});
}
}