Advertisemen
Check out our YouTube Channel - Aarlangdi dotKom for short films
If you want to call WaitForSeconds in java in unity3d. You write this -
In C# in unity3d. You write this -
Also, what I found out was, waitForSeconds in java is faster and smother than C#.
lass="" style="clear: both; text-align: center;">In another example, If you want to call transform function. In java, you just write -

If you try to write same way in C#, you will get an error saying "Cannot modify a value type return value of `UnityEngine.Transform.position'. Consider storing the value in a temporary variable" so you have to write this way -

I will write more difference between java and C# in unity in my later short tutorials...
Hope this helps you guys
Advertisemen
Tidak ada komentar:
Posting Komentar