Esempio n. 1
0
 internal void Init(IPlayerItemDefinition item)
 {
     this.item = item;
     Icon.Load(item.IconUrl);
     Name.text  = item.Name;
     Price.text = item.LocalPriceFormatted;
 }
Esempio n. 2
0
 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);
 }