Пример #1
0
 public void SetPos(float x)
 {
     if (relative)
     {
         _targetTransform.localPosition = MathCustom.LerpUnClampVector(_startPos, targetPos, x);
     }
     else
     {
         _targetTransform.position = MathCustom.LerpUnClampVector(_startPos, targetPos, x);
     }
 }
Пример #2
0
 public void SetScale(float x)
 {
     _targetTransform.localScale = MathCustom.LerpUnClampVector(startScale, targetScale, x);
 }