gameObject.find doesn't work


I made this script to make an inactive object active if scene 1 is loaded + the variable gameMode is 2, but it doesn’t work.
It gives me this error. Any help?

Js_Manager.OnLevelWasLoaded (Int32 level) (at Assets/Scripts/Js_Manager.js:15)

function OnLevelWasLoaded (level : int) {
	if(level == 1)
		if(gameMode == 2)
			GameObject.Find("SpaceshipPlayer2").active = true;

GameObject.Find will not return inactive GameObjects.

And I really advise you not to find objects by name, it is slow and bad practise. Cache a reference to them instead.