Hello,
I’ve been trying to convert javascript to C# in unity 3D. I’m stuck in converting this following code into C#.(Pardon my English, mates.)
private var Open = Color.yellow;
private var Shut = Color(0.14,0.14,0.14,1);
Hello,
I’ve been trying to convert javascript to C# in unity 3D. I’m stuck in converting this following code into C#.(Pardon my English, mates.)
private var Open = Color.yellow;
private var Shut = Color(0.14,0.14,0.14,1);
you always need new to instantiate a new instance of a struct / class.
in JS the automagic hides that fact.
you always need new to instantiate a new instance of a struct / class.
in JS the automagic hides that fact.
Thank you sir. So, umm–
Can you pls give me an example of it??
Cheers.
private Color open = Color.yellow;
private Color shut = new Color(0.14f, 0.14f, 0.14f, 1f);