PlayerCollision.Update C# (CSharp) Method

Update() public method

public Update ( ) : void
return void
    void Update()
    {
        timer += Time.deltaTime;
        if (health <= 0) {
            //GameOver();
        }
        if (damaged) {
            damageImage.color = flashColor;
        } else {
            damageImage.color = Color.Lerp (damageImage.color, Color.clear, flashSpeed * Time.deltaTime);
        }
        damaged = false;
    }