|
hi, iam trying to do a unity tutorial but it's in java and i work with C# script so i tried to convert every code into c# the only thing i have a problem now is i tried to do this but its not working and keep saying GameObject is not a Type type etc, but in the tutorial they used it like that :(, i tried a foreach loop instead of a for loop cause it seem more logical to me that forloops in java works in another way and as there is a "IN" i thougth c# version of that would be a foreach. original tutorial from unity. http://download.unity3d.com/support/resources/files/MultiplayerTutorial.pdf
(comments are locked)
|
|
It's because in C#, you need to add "typeof" in front of it: Thanks! it works now
Nov 17 '11 at 01:23 PM
Conny14156
Excellent. :) If the answer helped you, please mark it as accepted.
Nov 17 '11 at 01:26 PM
CHPedersen
(comments are locked)
|
