ButtonAddListener监听按钮点击事件 using UnityEngine; using System.Collections; using UnityEngine.UI; using UnityEngine.Events; public class ButtonAddListener: MonoBehaviour { public Sprite[] Sprites;//定义背景替换Sprite private GameObject BG;//定义按钮 private Image b