private void Awake() { context = this; modEnabled = Config.Bind <bool>("General", "Enabled", true, "Enable this mod"); dumpSFX = Config.Bind <bool>("General", "DumpSFX", false, "Dump sound effect names to the console"); nexusID = Config.Bind <int>("General", "NexusID", 90, "Nexus mod ID for updates"); if (!modEnabled.Value) { return; } PreloadAudioClips(); Harmony.CreateAndPatchAll(Assembly.GetExecutingAssembly(), null); }
private void Awake() { context = this; modEnabled = Config.Bind <bool>("General", "Enabled", true, "Enable this mod"); dumpInfo = Config.Bind <bool>("General", "DumpInfo", true, "Dump audio info to the console"); musicVol = Config.Bind <float>("General", "MusicVol", 0.6f, "Music volume, 0.0 - 1.0"); //sfxVol = Config.Bind<float>("General", "SfxVol", 1f, "SFX volume"); ambientVol = Config.Bind <float>("General", "AmbientVol", 0.3f, "Ambient volume"); nexusID = Config.Bind <int>("General", "NexusID", 90, "Nexus mod ID for updates"); if (!modEnabled.Value) { return; } PreloadAudioClips(); Harmony.CreateAndPatchAll(Assembly.GetExecutingAssembly(), null); }
private void OnRequestCompleted(AsyncOperation obj) { continuation(); BepInExPlugin.Dbgl("on request completed"); }
public void OnCompleted(Action continuation) { this.continuation = continuation; BepInExPlugin.Dbgl("on completed"); }
public void GetResult() { BepInExPlugin.Dbgl("Get Result"); }
public UnityWebRequestAwaiter(UnityWebRequestAsyncOperation asyncOp) { this.asyncOp = asyncOp; asyncOp.completed += OnRequestCompleted; BepInExPlugin.Dbgl("created asyncop"); }