using UnityEngine; using System.Collections; using UnityEngine.UI; using System; public class EquipPlusOrReduce : MonoBehaviour { public GameObject NumLable; string buttonName; public int equipNum; GameObject confirmBtn; GameObject reduceButton; GameObject plusButton; // Use this for initialization void Start () { buttonName = this.name; confirmBtn = this.transform.parent.Find("ConfirmButton").gameObject; reduceButton = this.transform.parent.Find("ReduceButton").gameObject; plusButton = this.transform.parent.Find("PlusButton").gameObject; this.GetComponent