if SetActiveRecursively problem

I have an main menu and i have an button, when I press the button it show the text, but i want it to be like this:
If it is SetActiveRecursively(false) and i click the button then SetActiveRecursively(true)
If it is SetActiveRecursively(true) and i click the button then SetActiveRecursively(false)

This is my code:

#pragma strict

var Text : GameObject;

function CREDITSfunction () {
Text.SetActiveRecursively(true);
}

Should be able to modify this method to suit your needs. Just add a check to see if the root object is active.

it isnt in javascipt

Java isn’t THAT much different than C#. Some of the syntax is a little different and it’'s looser with standards. Should be pretty easy to convert