Пример #1
0
 protected override void OnAnimate()
 {
     UIObject.Scale(
         BezierHelper.Linear(EasingTime, StartScale, EndScale),
         Anchor.GetValueOrDefault(UIObject.Anchor)
         );
 }
Пример #2
0
 public override void Animate()
 {
     transform.localScale = BezierHelper.Linear(
         EasingTime,
         Settings.From,
         Settings.To);
 }
Пример #3
0
 protected override void OnAnimate()
 {
     UIObject.Position(
         position: BezierHelper.Linear(EasingTime, StartPos, EndPos),
         anchor: Anchor.GetValueOrDefault(UIObject.Anchor),
         relativeTo: RelativeTo
         );
 }
Пример #4
0
        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);
            }
        }
Пример #5
0
 public override void Animate()
 {
     transform.Position(
         BezierHelper.Linear(EasingTime, Settings.From, Settings.To),
         Settings.RelativeTo);
 }