11 base.InvokeRepeating(
"_Update", 0f, 0.05f);
15 private void _Update()
20 if (
EMono.core.IsGameStarted)
22 if (
EMono.pc.WillConsumeTurn())
25 for (
int i =
EMono.pc.conditions.Count - 1; i >= 0; i--)
27 if (
EMono.pc.conditions[i].ConsumeTurn)
29 this.hint =
EMono.pc.conditions[i].GetText().ToTitleCase(
false);
33 else if (!
EMono.pc.HasNoGoal)
36 if (
EMono.pc.ai.IsAutoTurn || progress !=
null)
40 this.hint = progress.TextHint;
41 num = (float)(progress.ShowProgress ? progress.MaxProgress : 0);
42 now = (float)(progress.ShowProgress ? progress.progress : 0);
46 num = (float)
EMono.pc.ai.MaxProgress;
47 now = (float)(
EMono.pc.ai.ShowProgress ?
EMono.pc.ai.CurrentProgress : 0);
52 if (!this.gauge.gameObject.activeSelf & num != 0f)
54 this.gauge.bar.rectTransform.sizeDelta =
new Vector2(0f, this.gauge.bar.rectTransform.sizeDelta.y);
56 this.gauge.SetActive(num != 0f);
61 this.gauge.textNow.SetActive(this.hint !=
null);
63 this.gauge.UpdateValue(now, num);
64 if (this.hint !=
null)
66 this.gauge.textNow.SetText(this.hint);
68 this.icon.sprite = this.iconSprites[this.count / 5 % 2];
75 public Sprite[] iconSprites;