Answer by Yanger_xy
"duty 4 " I haven't played it yet.Can you describe your question in another way? NOTE TO MYSELF: I should use a comment next time. Not a answer! -- OrangeLightning :)
View ArticleAnswer by Yanger_xy
I am sure that you haven't attach it to a parent gameObject, So,Attach your gameObject with the animation to an Empty GameObject, and set the empty gameObject's position to 0,0,0. i.e, your gameObject...
View ArticleAnswer by Yanger_xy
Of course you can. I am doing it now.I just duplicate its prefabs and change its parameters and then Instantiate it. It works well. Good luck.
View ArticleAnswer by Yanger_xy
of course you can. just use the SetHeights function and combine with splatPrototype.
View ArticleAnswer by Yanger_xy
Add these codes after this two line. m.vertices = pv; m.triangles = pt; int nVertices = m.vertices.Length; Vector2 uvs = new Vector2[nVertices]; for(int i=0; i
View ArticleAnswer by Yanger_xy
Check your spellTextureArray. Are you sure that its elements are validating?
View ArticleAnswer by Yanger_xy
if(Input.GetMouseButton(0)&&Time.deltaTime>nextFire) { .... .... nextFire = Time.deltaTime+fireRate; ` .... } change it to this: if(Input.GetMouseButton(0)&&Time.time>nextFire) {...
View ArticleAnswer by Yanger_xy
You can add a tag to the plane to identify it's a Plane.and then using RaycastHit or Rigidbody, OnCollisionEnter.check if it is the plane,if not, destroy it and do everything you like. good luck
View ArticleAnswer 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
Note that the difference between screen coordinate and world coordinate. The screen coordinate's origin is at upper left,horizontal is x, and vertical is y. The world coordinate's horizontal is x, and...
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 Article