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(); }