示例#1
0
    private IEnumerator SetAcceleration(float time, float coeff)
    {
        //add acceleration for 3 seconds
        moveForwardSpeed *= coeff;
        readyForSpeedUp   = false;
        readyForFillBoost = false;
        yield return(new WaitForSeconds(time));

        moveForwardSpeed /= coeff;
        mainCamera.SetNormalZoom();
        readyForFillBoost = true;
    }