Call Function Problem

Hello Everybody,

I have a little problem and i need your help i have a function in my start.js and i want call this function in start2.js.

function GizmoCiz() {
if (startPoint != null)
{
Gizmos.color = Color.red;
Gizmos.DrawLine (transform.position, startPoint.gameObject.transform.position);
var scriptInstance = GetComponent(start);
scriptInstance.Dead();
Destroy(startPoint.gameObject);
}

Where is my wrong? How can i call my function from start.js and use in my script?

Can you help me ?

Regards

Try

`gameObject.GetComponent("start").Dead();`