- Home /
Question by
erda123 · Nov 01, 2013 at 05:33 PM ·
triggerfunction updategui-problem
Trigger Not Activating
Hello, my problem is that the script i have is not activating the scrip here it is:
var jumpscare : GameObject;
function Start () {
jumpscare.SetActiveRecursively(false);
}
function OnTriggerEnter(other : Collider){
jumpscare.SetActiveRecursively(true);
}
function OnTriggerExit(other : Collider){
jumpscare.SetActiveRecursively(false);
}
Comment
Why are you duplicating your question?
http://answers.unity3d.com/questions/567524/activate-gui-texture-on-trigger-activate.html
I already answered there.