mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
generated spirals now start off in the hidden state, allowing the reveal on translate stuff to work
This commit is contained in:
parent
b62db562f0
commit
d5480d9781
@ -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);
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user