示例#1
0
 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));
     }
 }
示例#2
0
 protected override void ApplyScale(Vector2 scale)
 {
     // Don't update scale, just use current scale
     onScale.UpdateScale(this.Scale());
 }