Game can perform properly but after build (windows) it has problem

I use first person controller to shot a ball, it can work when I test it
but after I complete build. it can’t throw the ball
I used unity 5.5.1 to edit and build it
the link below is the alert message.

The link below is my original file
https://drive.google.com/open?id=0B5OhObd713QPMVZLemdnbHV4TVU

after build
this is the alert message

Are the gameobject tags still defined after first editor rest?

below is My code …btw I am sure that there are tag which called Court in the scene.
sorry I am extreme novice…

var aim:GUITexture;
function OnControllerColliderHit(hit:ControllerColliderHit){

if(hit.gameObject.tag==“Court”){
Debug.Log(hit.gameObject.tag);
BallThrow.onPlate=true;
aim.GetComponent.().enabled=true;
}
/else
{
BallThrow.onPlate=false;
aim.GetComponent.().enabled=false;
}
/
}

could just be

Debug.Log("Court");

since the if statement already established that you’ve hit the court. No need for another access to gameobject.

Do a “Development build” (this will attach unity as a debugger to your build) to see more exception specifics.

thanks… after changing the code
problem still in the .exe file
and my cursor freeze when I close the window

What does unity editor console say?

on the picture I upload…

Those are just prints from editor console (you can’t click them and find out more about error).
Check the actual editor console.

in the very beginning it showed this
but now there is nothing besides this

The first image you posted are just “obsolete” warnings. Those can be calmly ingored :smile:

But this last image you posted is more revealing.
It says you’re missing audio refenrence, not court reference.
So start checking tags on audio gameobject and confirm that it still exists (if you switched scene).