Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
 private void OnRequestCompleted(AsyncOperation obj)
 {
     continuation();
     BepInExPlugin.Dbgl("on request completed");
 }
Exemplo n.º 4
0
        public void OnCompleted(Action continuation)
        {
            this.continuation = continuation;

            BepInExPlugin.Dbgl("on completed");
        }
Exemplo n.º 5
0
 public void GetResult()
 {
     BepInExPlugin.Dbgl("Get Result");
 }
Exemplo n.º 6
0
 public UnityWebRequestAwaiter(UnityWebRequestAsyncOperation asyncOp)
 {
     this.asyncOp       = asyncOp;
     asyncOp.completed += OnRequestCompleted;
     BepInExPlugin.Dbgl("created asyncop");
 }