25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

19 lines
361 B

  1. using System;
  2. using CIG.Translation;
  3. using UnityEngine;
  4. public class CraneShopItem : ShopItem
  5. {
  6. public void Init(decimal goldCost, Action<decimal> onClick)
  7. {
  8. base.Init(delegate
  9. {
  10. onClick(goldCost);
  11. });
  12. this._priceLabel.LocalizedString = Localization.Integer(goldCost);
  13. }
  14. [SerializeField]
  15. private LocalizedText _priceLabel;
  16. }