Cute_demon_attacks/meng_yao/Assets/script/scene_Main/DownPanel.cs
wulongxiao 54469fff53 体力
2024-12-28 16:24:08 +08:00

27 lines
695 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;
public StaminaBar _staminaBar;
// 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).GetComponent<Battle_Selection>()._staminaBar=this._staminaBar;
});
}
}