Hello Internet, please help me.
First off, my school only supports Unity 2 and I don't have the pro version, so that's what I'm using. Secondly, my game is fairly complex, so explaining the exact problem would take a long while. I'm just gonna be basic about it.
In multiple places I've tried to refer to function in another script and it's not working. An example of it would be something like this:
var objectBScript : ObjectB;
fuction Update () {
if (ray hits Object A)
objectBScript.DoStuff();
}
----Another Script named ObjectB on another GameObject------
function DoStuff () {
turn some stuff on;
turn more stuff on;
Destroy Gameobject;
}
The game would tell me it couldn't destroy the object, and I would change it to turn off the renderer instead and it wouldn't do it. I tried to make functions in a similar manner and call them in other places and it just wouldn't do it. I would put a debug or print in DoStuff function and it wouldn't show.
I also have other weird problems like variables not showing up in the inspector or using a prefab for a long while and then clicking on it in the project window and the inspector is empty even though the instance of it in the hierarchy is fine, and it won't let me update it. Sometimes I'll open Unity and it will tell me I have two audio listeners or something is wrong with my mesh and I can't find what is wrong with it, so I close Unity and open it again and the error will be gone and not come up again.
Would updating to Unity 3 help me in anyway?