void SceneLoader_OnSceneLoaded(On.SceneLoader.orig_OnSceneLoaded orig, UnityEngine.SceneManagement.Scene scene, UnityEngine.SceneManagement.LoadSceneMode loadSceneMode) { orig(scene, loadSceneMode); if (scene.name.Equals(ELevel.Level_06_A_BambooCreek.ToString() + "_Build")) { try { spawner = UnityEngine.Object.Instantiate(Resources.FindObjectsOfTypeAll <TurtleManRangedSpawner>()[0]); Vector3 newPos = new Vector3(475f, -90.5f); spawner.transform.position = newPos; Manager <Level> .Instance.LevelRooms["460492-92-76"].roomObjects.Add(spawner.gameObject); SpawnZone zone = UnityEngine.Object.Instantiate(Resources.FindObjectsOfTypeAll <SkeloutSpawner>()[0].transform.parent.parent.gameObject).GetComponent <SpawnZone>(); zone.transform.position = newPos; Manager <Level> .Instance.LevelRooms["460492-92-76"].roomObjects.Add(zone.spawners[0].gameObject); zone.spawnZoneRect = new Rect(new Vector2(460, -92), new Vector2(32, 16)); zone.spawnLaneCount = 3; zone.spawnInterval = .5f; zone.maxSpawnedObjects = 30; CourierLogger.Log("HarderBosses", "All bamboo creek spawners placed"); } catch (Exception e) { Console.WriteLine("Exception while placing bamboo creek spawners"); CourierLogger.LogDetailed(e, "HarderBosses"); } } }
void OnRainbowModeToggle() { rainbowMode = !rainbowMode; rainbowColor = HSBColor.FromColor(Color.white); rainbowModeButton.UpdateStateText(); CourierLogger.Log("NinjaAesthetic", "Rainbow Mode: " + rainbowMode); }