"Cannot Convert 'PlayerDataClass' to 'void'"
Surely I made something wrong in the "translation" and I don't know what it is...
The original code in C#:
My UnityScript translation:
"return capture" is where the console tells me it's wrong.
Thanks in advance to anyone willing to help me.
The constructor in a class can't return anything. The correct translation of
In this case you have a function called "Constructor", but it's not actually a constructor. I'd recommend creating a proper constructor instead.