UI框架开发中

This commit is contained in:
2025-09-29 07:45:07 +08:00
parent 423ad80303
commit 71edbb6088
39 changed files with 1191 additions and 397 deletions

View File

@@ -36,7 +36,6 @@ public class NetWorkThirdCharacterController : NetworkBehaviour
//if (!isLocalPlayer) return;
framingTransposer = vCam.GetCinemachineComponent<CinemachineFramingTransposer>();
pov = vCam.GetCinemachineComponent<CinemachinePOV>();
UpdateCursorState();
}
void Update()
{
@@ -120,16 +119,16 @@ public class NetWorkThirdCharacterController : NetworkBehaviour
if (!isLocalPlayer) return;
if (context.performed)
{
isCursorLocked = !isCursorLocked;
UpdateCursorState();
if (isCursorLocked)
{
SettingsManager.Instance.CloseSettingWindow();
}
else
{
SettingsManager.Instance.OpenSettingWindow();
}
//isCursorLocked = SettingsManager.Inst.isShow();
//UpdateCursorState();
//if (SettingsManager.Inst.isShow())
//{
// SettingsManager.Inst.CloseSettingWindow();
//}
//else
//{
// SettingsManager.Inst.OpenSettingWindow();
//}
}
}
public void OnAlt(InputAction.CallbackContext context)
@@ -197,6 +196,7 @@ public class NetWorkThirdCharacterController : NetworkBehaviour
{
Debug.Log("OnStartLocalPlayer");
vCam.Priority = 15;
UpdateCursorState();
}
/// <summary>