ShopWindowItem.cs 341 B

123456789101112
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class ShopWindowItem : ReusingScrollItemBase
  5. {
  6. public override void SetContent(int index, Dictionary<string, object> data)
  7. {
  8. SetText("Text_Name", (string)data["Name"]);
  9. SetText("Text_Cost", "$ "+ (string)data["Cost"]);
  10. }
  11. }