void Update() { DifficultyScript.elapsedTime = Time.time - time; speed = Mathf.Lerp(speedMinMax.x, speedMinMax.y, DifficultyScript.GetDifficultyPercent()); follower.followSpeed = speed * 5f; if (Input.GetKeyDown(KeyCode.Q)) { ArrayTest2(); } if (Input.GetKeyDown(KeyCode.W)) { ArrayTest(); } }
void Update() { #region TEST INPUT /* * if (Input.GetKeyDown(KeyCode.Keypad4)) * { * StartMovement(); * }*/ /* * if (Input.GetKeyDown(KeyCode.Q)) * { * RestartSpeed(); * }*/ #endregion DifficultyScript.elapsedTime = Time.time - time; speed = Mathf.Lerp(speedMinMax.x, speedMinMax.y, DifficultyScript.GetDifficultyPercent()); follower.followSpeed = speed; }