Converting JavaScript to C#

If someone can translate this to C# I’d greatly appreciate it.

var LookAtTarget: Transform;
var damp=6.0;
var BulletPrefab: Transform;
var savedTime=0;
var delayTime=2f;
function Update ()
{
    if(LookAtTarget)
    {
        var rotate = Quaternion.LookRotation(LookAtTarget.position - transform.position);
   
        var seconds: int = Time.time;
   
        Shoot(seconds);
    }
}
    function Shoot(seconds)
    {
        if (seconds == savedTime)
        {
            var bullet = Instantiate(BulletPrefab ,transform.Find ("SpawnPoint").transform.position ,
                                    Quaternion.identity);
            bullet.GetComponent.<Rigidbody>().AddForce(transform.up *1000);
       
            savedTime=seconds+delayTime;
            }
            }
public Transform LookAtTarget
public float damp = 6.0f;
public Transform BulletPrefab;
public int saveTime = 0;

void Update ()
{
    if(LookAtTarget)
    {
        var rotate = Quaternion.LookRotation(LookAtTarget.position - transform.position);
 
       float seconds = Time.time;
 
        Shoot(seconds);
    }
}
    void Shoot(float seconds)
    {
        if (seconds == savedTime)
        {
            GameObject bullet = Instantiate(BulletPrefab ,transform.Find ("SpawnPoint").transform.position ,
                                    Quaternion.identity);
            bullet.GetComponent.<Rigidbody>().AddForce(transform.up *1000);
     
            savedTime=seconds+delayTime;
            }
            }

you missed a var :stuck_out_tongue:

var rotation
=>
Quaternion rotation

This website can also help for future JS to C# conversions. If using it, declaring all the variable types is helpful, e.g.

var delayTime : float = 2f;

instead of

var delayTime=2f;