If so, what am I doing wrong here?
class OuterClass {
var ic : InnerClass;
function OuterClass() {
ic = new InnerClass();
ic.DoSomething();
}
class InnerClass {
function DoSomething() {
Debug.Log("Something done.");
}
}
}
gives the error:
BCE0044: expecting }, found 'class'.