Is there a way to trigger something to happen when an object is inactive? For example, if I wanted it so then when I click on an object, it goes inactive (that I can already do). Then I want a level to load after it isn’t active (I can’t do that). I am trying to do this with two different scripts; one to make the object inactive and one to load the level. Here is the script that loads the level:
var object : GameObject;
function Update(){
if(object.SetActive == false){
Application.LoadLevel("Level");
}
}