UI框架开发中
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user