Quantcast
Channel: Answers by "TSorbera"
Browsing all 12 articles
Browse latest View live

Answer by TSorbera

If it's not already, try putting your `if (Event.current.Equals (Event.KeyboardEvent ("return"))) enter = true;` line **before** your GUI call to create the text field. I had to do something similar...

View Article



Answer by TSorbera

If you want to use physics, you should probably be moving the character with physics. Try `Rigidbody.AddForce` or `AddRelativeForce`.

View Article

Answer by TSorbera

The whole way you're doing it is very roundabout and hard to read. Also, (especially at low frame rates) using WaitForSeconds(1) will give you inaccurate results, since it basically waits for that much...

View Article

Answer by TSorbera

An easy way to transfer such data between C# and JS scripts is to put it in a class in Standard Assets. These are built before the normal scripts, and are then available as .NET libraries to both...

View Article

Answer by TSorbera

I'll be giving you general help to help you learn, rather than looking up this tutorial and telling you the exact code. Find the code that makes the car go when you press the accelerator button....

View Article


Answer by TSorbera

You should probably be using the [`PlayerPrefs`][1] class instead. [1]: http://unity3d.com/support/documentation/ScriptReference/PlayerPrefs.html

View Article

Answer by TSorbera

If it's not already, try putting your `if (Event.current.Equals (Event.KeyboardEvent ("return"))) enter = true;` line **before** your GUI call to create the text field. I had to do something similar...

View Article

Answer by TSorbera

If you want to use physics, you should probably be moving the character with physics. Try `Rigidbody.AddForce` or `AddRelativeForce`.

View Article


Answer by TSorbera

The whole way you're doing it is very roundabout and hard to read. Also, (especially at low frame rates) using WaitForSeconds(1) will give you inaccurate results, since it basically waits for that much...

View Article


Answer by TSorbera

An easy way to transfer such data between C# and JS scripts is to put it in a class in Standard Assets. These are built before the normal scripts, and are then available as .NET libraries to both...

View Article

Answer by TSorbera

I'll be giving you general help to help you learn, rather than looking up this tutorial and telling you the exact code. Find the code that makes the car go when you press the accelerator button....

View Article

Answer by TSorbera

You should probably be using the [`PlayerPrefs`][1] class instead. [1]: http://unity3d.com/support/documentation/ScriptReference/PlayerPrefs.html

View Article
Browsing all 12 articles
Browse latest View live




Latest Images