private void ProcessDirection() { _unfoldDirection = new UnfoldDirection(_direction); foreach (var triangle in _smartTriangles) { triangle.UpdateUnfoldDirection(_unfoldDirection); } }
public void UpdateUnfoldDirection(UnfoldDirection direction) { if (_hasChildren) { foreach (var child in _children) { child.UpdateUnfoldDirection(direction); } } else { //_directionValue = direction.GetCentroidAnimationValue(_targetVertices.GetCentroid()); _directionValue = direction.GetCentroidRadiusAnimationValue(_targetVertices.GetCentroid()); } }