Say you have a text file "textfile.js". You include it in your Unity project (but do not attach to a game object.)
In the file you have this:
static class handy
{
function findArea(...):blah { blah }
function makeCoffee(...):blah { blah }
function guessName(...):blah { blah }
}
I feel very confused:
I could swear, **it was not possible to have static classes in Unityscript** ... ??
Has this changed recently, or ?
Thanks, experts !!
PS if I'm not mistaken it remains a intriguing factoid that Unityscript is totally undocumented. So if anyone "knows" this (presumably from eg. talking to friends at Unity .. or whatever) again thanks.
↧