internal void Init(IPlayerItemDefinition item) { this.item = item; Icon.Load(item.IconUrl); Name.text = item.Name; Price.text = item.LocalPriceFormatted; }
public void Show(IPlayerItemDefinition item) { this.item = item; Icon.Load(item.IconUrl); Name.text = item.Name; Description.text = item.Description.BBCodeToUnity(); Price.text = item.LocalPriceFormatted; base.gameObject.SetActive(true); GetComponent <CanvasGroup>().alpha = 0f; LeanTween.alphaCanvas(GetComponent <CanvasGroup>(), 1f, 0.1f); }