8 public override void OnSetOwner()
10 this.owner = (base.owner as
Thing);
12 this.goIcon.transform.SetLocalPositionY(data.offset.y + data.size.y + 0.32f);
17 public override void Refresh()
19 this.timer += Time.deltaTime;
20 if (this.timer > 0.2f)
25 if (!this.owner.isHidden ||
EMono.pc.CanSee(
this.owner))
27 if (!base.gameObject.activeSelf)
29 base.gameObject.SetActive(
true);
31 base.transform.position = this.owner.renderer.position;
34 if (base.gameObject.activeSelf)
36 base.gameObject.SetActive(
false);
41 public void RefreshAll()
45 if (this.owner.IsInstalled)
47 if (this.owner.isRestocking && !
this.owner.IsPCParty &&
this.owner.trait.GetRestockedIcon() != Emo2.none && !(
EMono._zone is
Zone_Dungeon))
49 emo = this.owner.trait.GetRestockedIcon();
53 Thing thing =
EMono.player.currentHotItem.Thing;
54 if (((thing !=
null) ? thing.trait :
null) is
TraitToolShears &&
this.owner.CanBeSheared())
60 bool flag = emo > Emo2.none;
63 this.iconStatus.sprite =
EMono.core.refs.spritesEmo[(int)emo];
65 this.iconStatus.SetActive(flag);
69 public GameObject goIcon;
72 public SpriteRenderer iconStatus;
75 public new Thing owner;