public override void OnLevelLoaded(LoadMode mode)
        {
            base.OnLevelLoaded(mode);
            WildlifeSpawnerMonitor.Initialize();
            ModUI.Initialize();

            PatchDogAndPark();
        }
Exemple #2
0
        public void Update()
        {
            var tool = ToolsModifierControl.GetCurrentTool <BuildingTool>();

            if (tool?.m_prefab == null)
            {
                ModUI.Hide();
                return;
            }
            if (tool.m_prefab.name.Contains("Wild"))
            {
                ModUI.Show();
            }
        }
 public override void OnLevelUnloading()
 {
     base.OnLevelUnloading();
     WildlifeSpawnerMonitor.Dispose();
     ModUI.Dispose();
 }