protected override void OnAnimate() { UIObject.Scale( BezierHelper.Linear(EasingTime, StartScale, EndScale), Anchor.GetValueOrDefault(UIObject.Anchor) ); }
public override void Animate() { transform.localScale = BezierHelper.Linear( EasingTime, Settings.From, Settings.To); }
protected override void OnAnimate() { UIObject.Position( position: BezierHelper.Linear(EasingTime, StartPos, EndPos), anchor: Anchor.GetValueOrDefault(UIObject.Anchor), relativeTo: RelativeTo ); }
protected override void OnAnimate() { var rotation = BezierHelper.Linear(EasingTime, FromAngle, ToAngle); if (RotateAround != null) { UIObject.RotationAround(RotateAround.Value, rotation, RelativeTo); } else { UIObject.Rotation(rotation, RelativeTo); } }
public override void Animate() { transform.Position( BezierHelper.Linear(EasingTime, Settings.From, Settings.To), Settings.RelativeTo); }