学习模式 只高亮当前

考核模式 高亮做过的步骤
实现过于耦合 后期优化
This commit is contained in:
shenjianxing 2024-12-31 16:41:03 +08:00
parent 3e4d87b0ca
commit 448bab5f03

View File

@ -66,7 +66,15 @@ namespace QFramework.Example
btn.transform.parent.gameObject.SetActive(true);
break;
case StepStatus.Finished:
stepLabel.color = highColor;
// TODO实现方式过于耦合 后期优化
if (Global.Instance.curModule.type=="Exam")
{
stepLabel.color = highColor;
}
else
{
stepLabel.color = Color.white;
}
break;
}
}