コード例 #1
0
    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();
        }
    }
コード例 #2
0
    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;
    }