9 public override void OnSetOwner()
17 this.timer -= Core.delta;
20 this.timer += this.refreshInterval;
28 if (base.owner ==
null)
33 bool flag = base.owner.isOn && base.owner.IsInstalled && traitGeneMachine.IsTargetUsingGene();
34 this.goBar.SetActive(flag);
37 float progress = traitGeneMachine.GetProgress();
38 this.bar.rectTransform.sizeDelta =
new Vector2(progress * this.bgBar.rectTransform.sizeDelta.x,
this.bgBar.rectTransform.sizeDelta.y);
39 if (this.textProgress)
41 this.textProgress.text = traitGeneMachine.GetProgressText();
47 public TCExtraProgress.ProgressType progressType;
50 public GameObject goBar;
59 public UIText textProgress;
62 public float refreshInterval;
68 public enum ProgressType