17 public override bool IsDisabled(
Chara c)
23 public override void OnCreate()
25 if (this.data ==
null)
29 this.data.TryRefresh(this.owner);
35 base.OnInstantiate(a, b);
36 int money =
EClass.pc.GetCurrency(
"money");
37 b.AddPrefab<UIItem>(
"costMoney").text1.SetText((
this.Cost(a).ToString() ??
"").TagColorGoodBad(() => money >=
this.Cost(a),
false));
43 LayerPeople.slaveToBuy = c;
48 public int Cost(
Chara c)
54 public override void OnList()
56 foreach (
Chara o
in this.data.list)