Mouse Rotation not works in PC-Build...

Hi friends,

void OnGUI ()
		if (Input.GetMouseButton (0)) {
			smoothRotate (); 

I use a kind of script like above for rotating 3D object.
It works fine in player mode(Game view) in unity. But not works when i take build for PC.
Other features are working well in the build, other than mouse rotation.
What may be the problem? I even tried reimport and tried. No result.
Please help me

The #if UNITY_EDITOR you have used tells Unity to only use the code inside when it’s running in the editor. You might want to read up on c# code.