diff --git a/Assets/Scripts/EnterPoint.cs b/Assets/Scripts/EnterPoint.cs index 6f474a574..1f0eca643 100644 --- a/Assets/Scripts/EnterPoint.cs +++ b/Assets/Scripts/EnterPoint.cs @@ -10,7 +10,7 @@ public class EnterPoint : MonoBehaviour { [SerializeField] private Settings _settings; [SerializeField] private Canvas _targetCanvas; - private float _timeScale = 1; + private float _timeScale = 5; void Start() { diff --git a/Assets/Scripts/Model/Runtime/Projectiles/ArchToTileProjectile.cs b/Assets/Scripts/Model/Runtime/Projectiles/ArchToTileProjectile.cs index c37ed0218..1e5da86cd 100644 --- a/Assets/Scripts/Model/Runtime/Projectiles/ArchToTileProjectile.cs +++ b/Assets/Scripts/Model/Runtime/Projectiles/ArchToTileProjectile.cs @@ -26,14 +26,14 @@ protected override void UpdateImpl(float deltaTime, float time) float localHeight = 0f; float totalDistance = _totalDistance; - /////////////////////////////////////// - // Insert you code here - /////////////////////////////////////// + //Упрожнение №2 + float maxHeight = totalDistance * 0.6f; + float x = t * 2 - 1; - /////////////////////////////////////// - // End of the code to insert - /////////////////////////////////////// + x *= x; + + localHeight = maxHeight * (1-x) ; Height = localHeight; if (time > StartTime + _timeToTarget)