private void Initialize(BetterFractal parent, int childIndex) { mesh = parent.mesh; materials = parent.materials; maxDepth = parent.maxDepth; depth = parent.depth + 1; childScale = parent.childScale; transform.parent = parent.transform; transform.localScale = Vector3.one * childScale; transform.localPosition = childDirections[childIndex] * (0.5f + 0.5f * childScale); transform.localRotation = childOrientations[childIndex]; }
internal void Initialize(BetterFractal betterFractal, Vector3 up, Quaternion identity) { throw new NotImplementedException(); }