|
I'm working on an easy dice roll. All it is is getting a random number from the code and it will display on the screen the two numbers. I'm having trouble though. It is in C#
.Next is underlined and it wont compile. Any suggestions on how to fix this?
(comments are locked)
|
|
It's because you're using unitys Random class and not the .net/monos Random class. I am not sure which you want to use but I think simplest is to use unitys: Thanks for the help. It doesn't matter which one i use as long as it works.
Mar 20 '11 at 11:13 PM
crzyone9584
(comments are locked)
|
|
If you want to use Random from .NET, either import the System namespace, or use System.Random to differentiate it from UnityEngine.Random. They do the same thing, well from what I can tell they do the same thing.
Mar 21 '11 at 01:25 AM
crzyone9584
Actually they don't. See the Random class docs on MSDN.
Mar 21 '11 at 04:45 AM
Eric5h5
(comments are locked)
|
