How to replace a gameobject referenced in JS using C#

Please help!

What I have, is a javascript that manages a radar called “radarscript” that requires a game object called “anything” to be placed in “Transforms[0]”. I then have a C# script that instantiates “Player”. I then need to update the “radarscript” with the newly instantiated “Player” game object.
I have searched thoroughly and asked elsewhere but can’t get an answer that doesn’t baffle me. I’ve read the doc about GetComponent, but trying to incorporate the example just gives errors like “radarscript doesn’t exist in the current context”.
There must be an understandable way to replace “anything” with “player”

The javascript has the line ‘Transforms[0] = GameObject.Find(“anything”).transform;’
Can I update “anything” to “player” with c# once “player” is instantiated?

Thanks

Transforms[0] = GameObject.Find(“anything”).transform;

Your question is confusing. You can execute the line you specify using ‘Player’ as long as a game object with the name ‘Player’ exists at the time the line is executed. If it does not exist, then this line will generate a null reference exception. Also note that by convention, variables should start with a lower case letter.

 "radarscript doesn't exist in the current context".

Missing classes will happen if you don’t have things compiled in the right order. The typical solution is to move any C# files that need to be access from Javascript into StandardAssets.

This is the syntax I was after…

    GameObject temp = GameObject.Find ("playerSHIP(Clone)/localSHIP");
	GameObject.Find("RadarMgr").GetComponent<RadarScript>().Transforms[0] = temp.transform;