PlayerInteraction.Update C# (CSharp) 메소드

Update() 개인적인 메소드

private Update ( ) : void
리턴 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));
        }
    }