PlayerInteraction.Update C# (CSharp) Method

Update() private method

private Update ( ) : void
return void
    void Update()
    {
        timePassed += Time.deltaTime;
        interpolant = timePassed/durationOfBP;
        if (interpolant >= 1.0f) {
            interpolant = 1.0f;
            bouncePadMatActive = false;
        }
        if (bouncePadMatActive) {
            currBouncePadMat.SetColor("_EmissionColor", Vector4.Lerp(new Color(0.4f, 0.4f, 0.4f, 1.0f), Color.black, interpolant));
        }
    }