public StoreConfirmParam(Rune rune, RuneType type, pd_GoodsData goods, OnOkDeleage _del, bool is_event) { title = rune.GetName(); this.icon_id = goods.goods_type.ToString(); this.price = goods.goods_value; rune_item = rune; message = Localization.Get(type + "Confirm"); OnOk = _del; this.is_event = is_event; }
public void Init(Rune rune, bool equipped, OnRuneClickDelegate del) { m_OnClickCallback = del; Rune = rune; if (m_RuneItem == null) { m_RuneItem = NGUITools.AddChild(m_RuneIndicator.gameObject, runeItemPrefab).GetComponent <RuneItem>(); } m_EquippedToggle.value = equipped; m_RuneItem.Init(Rune, false, null); m_title.text = Rune.GetName(); m_desc.text = Rune.GetDesc(); m_tween.ResetToBeginning(); m_tween.PlayForward(); m_EventRuneUnequip.SetActive(EventHottimeManager.Instance.IsRuneUnequipEvent); m_EventRuneEnchant.SetActive(EventHottimeManager.Instance.IsRuneEnchantEvent); }