UI框架开发中

This commit is contained in:
2025-09-29 11:03:26 +08:00
parent 71edbb6088
commit 3ea4257e2d
24 changed files with 292 additions and 266 deletions

View File

@@ -119,16 +119,16 @@ public class NetWorkThirdCharacterController : NetworkBehaviour
if (!isLocalPlayer) return;
if (context.performed)
{
//isCursorLocked = SettingsManager.Inst.isShow();
//UpdateCursorState();
//if (SettingsManager.Inst.isShow())
//{
// SettingsManager.Inst.CloseSettingWindow();
//}
//else
//{
// SettingsManager.Inst.OpenSettingWindow();
//}
isCursorLocked = !isCursorLocked;
UpdateCursorState();
if (GameSystem.Inst.UI.CheckShow(nameof(SettingsWindow)))
{
GameSystem.Inst.UI.HideWindow(nameof(SettingsWindow));
}
else
{
GameSystem.Inst.UI.ShowWindow<SettingsWindow>(nameof(SettingsWindow));
}
}
}
public void OnAlt(InputAction.CallbackContext context)

View File

@@ -115,14 +115,14 @@ public class ThirdCharacterController : MonoBehaviour
{
isCursorLocked = !isCursorLocked;
UpdateCursorState();
//if (SettingsManager.Inst.isShow())
//{
// SettingsManager.Inst.CloseSettingWindow();
//}
//else
//{
// SettingsManager.Inst.OpenSettingWindow();
//}
if (GameSystem.Inst.UI.CheckShow(nameof(SettingsWindow)))
{
GameSystem.Inst.UI.HideWindow(nameof(SettingsWindow));
}
else
{
GameSystem.Inst.UI.ShowWindow<SettingsWindow>(nameof(SettingsWindow));
}
}
}
public void OnFire(InputAction.CallbackContext context)