Пример #1
0
 private void Update()
 {
     if (!canUpdate)
     {
         return;
     }
     target.y           = demoController.GetCurrExpositor() * demoController.expositorDistance;
     transform.position = Vector3.Lerp(transform.position, target, speed * Time.deltaTime);
 }