From badea22cfc42769f6f2fcab42d5999890c88b3c8 Mon Sep 17 00:00:00 2001 From: clay Date: Fri, 1 Sep 2023 03:15:41 -0400 Subject: [PATCH] added todo and removed comment --- NewHorizons/Builder/Props/ProjectionBuilder.cs | 2 +- NewHorizons/Builder/Props/QuantumBuilder.cs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/NewHorizons/Builder/Props/ProjectionBuilder.cs b/NewHorizons/Builder/Props/ProjectionBuilder.cs index cbc10091..c73b330e 100644 --- a/NewHorizons/Builder/Props/ProjectionBuilder.cs +++ b/NewHorizons/Builder/Props/ProjectionBuilder.cs @@ -214,7 +214,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 var slides = info.slides; var slidesCount = slides.Length; - var slideCollection = new SlideCollection(slidesCount); + var slideCollection = new SlideCollection(slidesCount); // TODO: uh I think that info.slides[i].playTimeDuration is not being read here... note to self for when I implement support for that: 0.7 is what to default to if playTimeDuration turns out to be 0 var imageLoader = AddAsyncLoader(g, mod, info.slides, ref slideCollection); imageLoader.imageLoadedEvent.AddListener((Texture2D tex, int index) => { slideCollection.slides[index]._image = tex; }); diff --git a/NewHorizons/Builder/Props/QuantumBuilder.cs b/NewHorizons/Builder/Props/QuantumBuilder.cs index 78246bbf..0df75a2f 100644 --- a/NewHorizons/Builder/Props/QuantumBuilder.cs +++ b/NewHorizons/Builder/Props/QuantumBuilder.cs @@ -75,9 +75,10 @@ namespace NewHorizons.Builder.Props // why does this affect states and not sockets? Well because sockets put the QuantumObject component (QuantumSocketedObject) on the actual props themselves // while states put the QuantumObject component (NHMultiStateQuantumObject) on the parent, which is located at the center of the planet // this means that the distance measured by QuantumObject is not accurate, since it's not measuring from the active prop, but from the center of the planet + var groupRoot = new GameObject("Quantum States - " + quantumGroup.id); groupRoot.transform.parent = sector?.transform ?? go.transform; - groupRoot.transform.position = Vector3.zero; ////propsInGroup.Select(prop => prop.transform.position).Aggregate(Vector3.zero, (runningTotal, position) => runningTotal + position) / propsInGroup.Length; + groupRoot.transform.position = Vector3.zero; var states = new List(); foreach(var prop in propsInGroup)