Esempio n. 1
0
    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];
    }
Esempio n. 2
0
 internal void Initialize(BetterFractal betterFractal, Vector3 up, Quaternion identity)
 {
     throw new NotImplementedException();
 }