wuxianshengcong/Assets/Scripts/Buttonitem.cs
2024-12-30 10:39:09 +08:00

24 lines
442 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class Buttonitem : Anim
{
public Button btn;
void Start()
{
btn = this.gameObject.GetComponent<Button>();
btn.onClick.AddListener(() =>
{
BTnmove(btn.gameObject);
});
}
// Update is called once per frame
void Update()
{
}
}