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);
}