putting gravity with script

Hello! i’m doin a script for adding gravity to a game object.

#pragma strict
    var gravity : float = -5;
    function Update () {
    Transform.Translate (0, "gravity" Time.deltaTime, 0); 
    }

but i get this error: BCE0020: An instance of type ‘UnityEngine.Transform’ is required to access non static member ‘Translate’.

Thanks a lot!

use “transform” instead of “Transform” (lower-cast T).

Transform is the class name (in which case would presume Translate is a static method).

transform is the accessor to the Object’s Transform component.