generated spirals now start off in the hidden state, allowing the reveal on translate stuff to work

This commit is contained in:
FreezeDriedMangoes 2023-01-27 13:40:06 -05:00
parent b62db562f0
commit d5480d9781
2 changed files with 4 additions and 5 deletions

View File

@ -171,6 +171,8 @@ namespace NewHorizons.Builder.Props
// TODO: for integration with NH - before generating spirals, seed the RNG with the hash of the XML filename for this convo
// and add an option to specify the seed
// TODO: make all spirals unrevealed at first except the root spiral
Dictionary<SpiralManipulator, Vector2> childForces = new Dictionary<SpiralManipulator, Vector2>();
//Debug.Log(reverseToposortedSpirals.Count);

View File

@ -74,13 +74,10 @@ namespace NewHorizons.Builder.Props
.ToArray();
owNomaiTextLine._points = _points;
//owNomaiTextLine._lengths = _points.Take(_points.Count()-1).Select((point, i) => Vector3.Distance(point, _points[i+1])).ToArray();
//owNomaiTextLine._totalLength = owNomaiTextLine._lengths.Aggregate(0f, (acc, length) => acc + length);
owNomaiTextLine._state = NomaiTextLine.VisualState.UNREAD;
owNomaiTextLine._state = NomaiTextLine.VisualState.HIDDEN;
owNomaiTextLine._textLineLocation = NomaiText.Location.UNSPECIFIED;
//owNomaiTextLine._center = _points.Aggregate(Vector3.zero, (acc, point) => acc + point) / (float)_points.Count();
//owNomaiTextLine._radius = _points.Aggregate(0f, (acc, point) => Mathf.Max(Vector3.Distance(owNomaiTextLine._center, point), acc));
owNomaiTextLine._active = true;
owNomaiTextLine._prebuilt = false;
g.SetActive(true);
return g;