require "dev/PCPlatform/CursorMgr" require "dev/PCPlatform/PCFastKey" require "dev/PCPlatform/PCSkillInfoMgr" ---@class PCPlatformMgr ---@field IsPCPlatform boolean PCPlatformMgr = class() local this = PCPlatformMgr this.ShowedShortcutKeyPanel = false function this.Init() this.CursorMgr = CursorMgr this.CursorMgr.Init() PCFastKey.Init() PCSkillInfoMgr.Init() end function this.Update() this.CursorMgr.Update() this.ShortCutKey() PCFastKey.Update() end function this.ShortCutKey() if not SL:GetIsInGame() then return end if (Input.GetKeyDown(KeyCode.F1)) then if this.ShowedShortcutKeyPanel then GUI:UIPanel_Close("dev/outui/PCPlatform/Panel/KLShortcurKeyExplain/KLShortcurKeyExplainPanel") this.ShowedShortcutKeyPanel = false else GUI:UIPanel_Open("dev/outui/PCPlatform/Panel/KLShortcurKeyExplain/KLShortcurKeyExplainPanel") this.ShowedShortcutKeyPanel = true end end end this.Init()