diff --git a/NewHorizons/Builder/Props/ProjectionBuilder.cs b/NewHorizons/Builder/Props/ProjectionBuilder.cs index 259835bf..7745ee0e 100644 --- a/NewHorizons/Builder/Props/ProjectionBuilder.cs +++ b/NewHorizons/Builder/Props/ProjectionBuilder.cs @@ -162,7 +162,7 @@ namespace NewHorizons.Builder.Props { // spawn a trigger for the vision torch var path = "DreamWorld_Body/Sector_DreamWorld/Sector_Underground/Sector_PrisonCell/Ghosts_PrisonCell/GhostNodeMap_PrisonCell_Lower/Prefab_IP_GhostBird_Prisoner/Ghostbird_IP_ANIM/Ghostbird_Skin_01:Ghostbird_Rig_V01:Base/Ghostbird_Skin_01:Ghostbird_Rig_V01:Root/Ghostbird_Skin_01:Ghostbird_Rig_V01:Spine01/Ghostbird_Skin_01:Ghostbird_Rig_V01:Spine02/Ghostbird_Skin_01:Ghostbird_Rig_V01:Spine03/Ghostbird_Skin_01:Ghostbird_Rig_V01:Spine04/Ghostbird_Skin_01:Ghostbird_Rig_V01:Neck01/Ghostbird_Skin_01:Ghostbird_Rig_V01:Neck02/Ghostbird_Skin_01:Ghostbird_Rig_V01:Head/PrisonerHeadDetector"; - GameObject g = DetailBuilder.MakeDetail(planetGO, sector, path, info.position, Vector3.zero, 2, false); + var g = DetailBuilder.MakeDetail(planetGO, sector, path, info.position, Vector3.zero, 2, false); if (g == null) { @@ -173,7 +173,7 @@ namespace NewHorizons.Builder.Props g.name = "VisionStaffDetector"; // The number of slides is unlimited, 15 is only for texturing the actual slide reel item. This is not a slide reel item - SlideInfo[] slides = info.slides; + var slides = info.slides; var slidesCount = slides.Length; var slideCollection = new SlideCollection(slidesCount); @@ -193,8 +193,8 @@ namespace NewHorizons.Builder.Props } // attatch a component to store all the data for the slides that play when a vision torch scans this target - VisionTorchTarget target = g.AddComponent(); - SlideCollectionContainer slideCollectionContainer = g.AddComponent(); + var target = g.AddComponent(); + var slideCollectionContainer = g.AddComponent(); slideCollectionContainer.slideCollection = slideCollection; target.slideCollection = g.AddComponent(); target.slideCollection._slideCollectionContainer = slideCollectionContainer; @@ -213,7 +213,7 @@ namespace NewHorizons.Builder.Props // var path = "RingWorld_Body/Sector_RingWorld/Sector_SecretEntrance/Interactibles_SecretEntrance/Experiment_1/VisionTorchApparatus/VisionTorchRoot/Prefab_IP_VisionTorchProjector"; - GameObject standingTorch = DetailBuilder.MakeDetail(planetGO, sector, path, info.position, info.rotation, 1, false); + var standingTorch = DetailBuilder.MakeDetail(planetGO, sector, path, info.position, info.rotation, 1, false); if (standingTorch == null) { @@ -225,7 +225,7 @@ namespace NewHorizons.Builder.Props // set some required properties on the torch // - MindSlideProjector mindSlideProjector = standingTorch.GetComponent(); + var mindSlideProjector = standingTorch.GetComponent(); mindSlideProjector._mindProjectorImageEffect = GameObject.Find("Player_Body/PlayerCamera").GetComponent(); // @@ -233,7 +233,7 @@ namespace NewHorizons.Builder.Props // // The number of slides is unlimited, 15 is only for texturing the actual slide reel item. This is not a slide reel item - SlideInfo[] slides = info.slides; + var slides = info.slides; var slidesCount = slides.Length; var slideCollection = new SlideCollection(slidesCount); @@ -252,9 +252,9 @@ namespace NewHorizons.Builder.Props } // set up the containers for the slides - SlideCollectionContainer slideCollectionContainer = standingTorch.AddComponent(); + var slideCollectionContainer = standingTorch.AddComponent(); slideCollectionContainer.slideCollection = slideCollection; - MindSlideCollection mindSlideCollection = standingTorch.AddComponent(); + var mindSlideCollection = standingTorch.AddComponent(); mindSlideCollection._slideCollectionContainer = slideCollectionContainer; // make sure that these slides play when the player wanders into the beam