public void Load() { string data = FileUtil.LoadFile(Const.Path_Shortcuts); if (data == null) { return; } InputAsset.LoadFromJson(data); }
public void Load() { string data = BaseFileUtils.LoadFile(BaseConstMgr.Path_Shortcuts); if (data == null) { return; } InputAsset.LoadFromJson(data); }
private InputController() { _controls = new InputAsset(); _inputContext = EInputContext.InGame; GameInputContext = new InGameInputContext(_controls.Game); UIInputContext = new UIInputContext(_controls.UI); EnablePlayerInput(); }
public InputController() { if (_instance != null) { return; } _controls = new InputAsset(); _instance = this; _inputContext = EInputContext.InGame; GameInputContext = new InGameInputContext(_controls.Game); UIInputContext = new UIInputContext(_controls.UI); EnablePlayerInput(); }
public void Save() { FileUtil.SaveJson(Const.Path_Shortcuts, InputAsset.ToJson()); }
protected InputActionMap TryGetActionMap(string id) => InputAsset?.FindActionMap(id);
public void Save() { BaseFileUtils.SaveJson(BaseConstMgr.Path_Shortcuts, InputAsset.ToJson()); }
protected InputActionMap TryGetActionMap(string id) { return(InputAsset.TryGetActionMap(id)); }