Answer by Yanger_xy
You can seen the car turtorial here. http://unity3d.com/support/resources/tutorials/car-tutorial.html
View ArticleAnswer by Yanger_xy
The real reason is that i put the Input.GetMouseButtonDown function in OnGUI function!
View ArticleAnswer by Yanger_xy
Thank you, the problem have gone, i find that there is noting wrong with my code after i post this question. The reason is that i haven't change the two variables'value on the inspector, public int...
View ArticleAnswer by Yanger_xy
Are you sure you have put the Input.GetKeyDown in Update function? if you put it in OnGUI, there would be more that one object thrown, maybe two, three or four... Just check this, good luck.
View ArticleAnswer by Yanger_xy
you can define a bool variable to record whether the player is died, and a variable to record the score like this: var : bool _isDied = false; var : float _score = 0; then in your OnGUI function, check...
View ArticleAnswer by Yanger_xy
Do you mean that you can find the gameobject with its old tag(spawn) using function gameObject.FindWithTag("spawn") even though you have changed its tag to a new one(picked)? If so, check whether there...
View ArticleAnswer by Yanger_xy
Do you mean Transform.localRotation ? The rotation of the transform relative to the parent transform's rotation. If so ,just change its value.
View ArticleAnswer by Yanger_xy
i came across the same problem, and after nearly 2 hours, i finally solved it. The reason is that you wanna to play the audio before its completely downloaded, you should call audio.Play function like...
View ArticleAnswer by Yanger_xy
i am using SAPI,It works perfect in debug mode. but after building it, it crashed down when it comes to GetVoice function. Here's my code. private SpVoice _voiceNotice = null;...
View ArticleAnswer by Yanger_xy
I have tested it too, without animation, the maya model in the unity perform well, but with the animation, FPS drops down nearly a half! How to optimize it, any answer will be appreciated!
View ArticleAnswer by Yanger_xy
LoadLevel.LoadLevelAsync() seems does not work, can you give me some demo codes? Thank you!
View ArticleAnswer by Yanger_xy
I think C# is a good choice.I don't think it's harder than java script. If you know one programming language, it's not even hard to learn it,1 week is ok.
View ArticleAnswer by Yanger_xy
Have you forgotten adding the fragment code? half4 frag (v2f i) : COLOR { return half4 (i.color, 1); }
View ArticleAnswer by Yanger_xy
The problem is here: GUI.color.a = Mathf.Lerp(0.0f, 1.0f, (Time.time / 2)); You can not set GUI.color value seperately, you should set its value like this: GUI.color = new Color(GUI.color.r,...
View Article