public void UpdateScale() { if (scaleController != null) { Vector2 scale = Vector2.zero; elements.ForEach(element => { element.transform.position = this.transform.position - (Vector3)ProjectScale(scale); scale += element.Scale(); }); scaleController.UpdateScale(ProjectScale(scale)); } }
protected override void ApplyScale(Vector2 scale) { // Don't update scale, just use current scale onScale.UpdateScale(this.Scale()); }