27 lines
695 B
C#
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;
|
|
});
|
|
}
|
|
|
|
|
|
}
|