Cute_demon_attacks/meng_yao/Assets/script/scene_Main/DownPanel.cs

23 lines
535 B
C#
Raw Normal View History

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>();
// Start is called before the first frame update
void Start()
{
btns[0].onClick.AddListener(async() => {
await ButtonClickAnimationAsync(btns[0].gameObject);
Debug.LogError("++++<2B><>++++ת++++<2B><>++++<2B><>++++");
SceneManager.LoadScene(2);
});
}
}