Interaction between javascript and Detonator (explosion framework) C#

Hey quick question I am very new to C#,

I have a java script that is trying to access the MyDetonator function in Detonator (explosion framework), which looks like this. (Detonator Script is located in Standard Assets)

public var detonatorScript: Detonator;
public var detonate: Detonator;

//Function start: rips the Detonator off of the current object for use
//of the script, then initcializes.
function Awake() {
	detonatorScript = transform.GetComponent(Detonator);
	detonate = detonatorScript.MyDetonator(); 
	
	initExplosion();
}

function initExplosion(){
	detonate.size = 10f;
	detonate.Explode();
}

But I am receiving an error " NullReferenceException: Object reference not set to an instance of an object " Anyone more familiar with accessing C# abstract class function from java script?

I am looking long time for solve this problem. I see people open several topics about the “Detonator” script and noone found solution.
Maybe new Unity not allow for call C# functions from JavaScript???