Пример #1
0
 private void StartTween()
 {
     _animationTween = LeanTween.value(0f, _tiling, _loopInSeconds).setLoopClamp().setOnUpdate(tiling =>
                                                                                               MovementUtils.SetTexturePosition(_material, _textureId, _materialXOffset, -tiling)).setDelay(_delayBeforeStart);
 }
Пример #2
0
 public void Reset()
 {
     ResetTween();
     MovementUtils.SetTexturePosition(_material, _textureId, _materialXOffset, 0f);
 }