public void ScaleUp(float factor, float step, float min, float max) { MovePivot(); float ls = transform.localScale.x; ls = AnimationData.ClampWithStep(factor, min, max, ls, step); transform.localScale = new Vector3(ls, ls, 1.0f); }
public void ScaleUp(float factor, float step, float min, float max) { GameObject go = gameObject; float ls = go.transform.localScale.x; ls = AnimationData.ClampWithStep(factor, min, max, ls, step); go.transform.localScale = new Vector3(ls, ls, ls); }