private void Awake() { if (instance == null) { instance = this; } else { throw new System.Exception("Duplicate input manager found"); } //Set controls for current platform if (Application.isMobilePlatform) { controls = mobileControls; } else { controls = pcControls; } }
public static void ResetToTextAssetDefaults(TextAsset ta) { bindings = new ControlBindings(); LoadFromTextAsset(ta); bindings.DeleteAllCustoms(); }