C# Respawn Help

I was wondering if anyone could help me with figuring out how to create a c# respawn script. You see I am using the Free Fantasy AI package available on the unity asset store, there isn’t anything in the script to respawn player if he/she dies.

My problem is that I have only being able to create a respawn script in java script and have no clue how you would go around creation one in C#, if anyone could help me in any way that would be great.

Just in case anyone is wondering, this is the respawn script I created in java script…
var startPosition : Transform;

function OnTriggerEnter(theCollider : Collider)

{
	theCollider.transform.position = startPosition.position;
}

Go dtí an chéad uair eile, slán leat

Transform startPosition //Creates a var of type Transform named startPosition

void OnTriggerEnter(Collider theCollider){
    theCollider.transform.position = startposition.position;
}