引入 UISerializationRoot 和 Item
- 完成 MenuForm 和 SelectRoleForm 的迁移
This commit is contained in:
@@ -51,21 +51,14 @@ namespace SepCore.UI
|
||||
|
||||
public void RefreshUI(HudContext hudContext)
|
||||
{
|
||||
RefreshMovePrompt(hudContext?.MovePrompt);
|
||||
RefreshMovePrompt(hudContext.MovePrompt);
|
||||
}
|
||||
|
||||
public void RefreshMovePrompt(string prompt)
|
||||
{
|
||||
bool visible = !string.IsNullOrEmpty(prompt);
|
||||
if (_movePromptRoot != null)
|
||||
{
|
||||
_movePromptRoot.SetActive(visible);
|
||||
}
|
||||
|
||||
if (_movePromptText != null)
|
||||
{
|
||||
_movePromptText.text = prompt;
|
||||
}
|
||||
_movePromptRoot.SetActive(visible);
|
||||
_movePromptText.text = prompt;
|
||||
}
|
||||
|
||||
#region FSM
|
||||
@@ -182,8 +175,6 @@ namespace SepCore.UI
|
||||
|
||||
private void RefreshPerformanceStats()
|
||||
{
|
||||
if (_cpuTimeCostText == null) return;
|
||||
|
||||
bool hasCpuFrame = TryGetLastValue(_cpuTimeRecorder, out long cpuFrameNanoseconds);
|
||||
|
||||
if (!hasCpuFrame)
|
||||
|
||||
Reference in New Issue
Block a user