public void CopyFrom(SgtBackdropQuad other) { Variant = other.Variant; Color = other.Color; Radius = other.Radius; Angle = other.Angle; Position = other.Position; }
protected virtual void NextQuad(ref SgtBackdropQuad star, int starIndex) { var position = Random.insideUnitSphere; position.y *= 1.0f - Squash; star.Variant = Random.Range(int.MinValue, int.MaxValue); star.Color = StarColors.Evaluate(Random.value); star.Radius = Mathf.Lerp(StarRadiusMin, StarRadiusMax, SgtHelper.Sharpness(Random.value, StarRadiusBias)); star.Angle = Random.Range(-180.0f, 180.0f); star.Position = position.normalized * Radius; }