//private GameObject vitalityObj; protected override void Init() { energyTxt = transform.Find("EnergyTxt").GetComponent <GUISingleLabel>(); goldBtn.onClick = OnGlogClick; jewelBtn.onClick = OnJewelClick; energyBtn.onClick = OnEnergyClick; //vitalityBtn.onClick = OnVitalityClick; energyObj = transform.Find("EnergyDesBtn").gameObject; //vitalityObj = transform.Find("VitalityDesBtn").gameObject; UIEventListener.Get(energyObj).onPress = OnEnergyPress; //UIEventListener.Get(vitalityObj).onPress = OnVitalityPress; instance = this; playerData.GetInstance().ChangeMoneyEvent += UpdateMoney; playerData.GetInstance().ChangeActionPoint += UpdateActionPoint; playerData.GetInstance().ChangeActionPointCeiling += UpdateActionPointCeiling; }
private void SetEarnings(UIMoney earnings, int place) { money[place] = earnings; }
public void AddDelegate(UIMoney ui) { MoneyDelegateList.Add(ui); }
public void AddDelegate(UIMoney ui) { MoneyDelegateList.Add(ui); }
void Awake() { Instance = this; }