fixed wave counter's lack of font

This commit is contained in:
msk
2022-01-30 14:41:03 -08:00
parent d4c5e84404
commit 640245cdd5
5 changed files with 32 additions and 16 deletions
+2 -1
View File
@@ -16,7 +16,9 @@ namespace TNHQoLImprovements
// Use this for initialization
void Start()
{
transform.GetChild(0).GetComponent<Text>().font = MeatKitPlugin.fontAgencyFB;
text = transform.GetChild(1).GetComponent<Text>();
text.font = MeatKitPlugin.fontAgencyFB;
}
// Update is called once per frame
@@ -27,7 +29,6 @@ namespace TNHQoLImprovements
if(!ReferenceEquals(curHoldPoint, InPlay.tnhManager.m_curHoldPoint))
{
Debug.Log("Hold point updated!");
curHoldPoint = InPlay.tnhManager.m_curHoldPoint;
trCurPhaseIdx = Traverse.Create(curHoldPoint).Field<int>("m_phaseIndex");
trMaxPhases = Traverse.Create(curHoldPoint).Field<int>("m_maxPhases");