Hi, newbie here crossing over from Unity, I often like to refer to other c# classes I might have declared in my project e,g:
public class Foo
{
private Bar bar;
public void init()
{
bar = new Bar();
}
}
In GDScript I am trying to declare bar like so:
Foo.gd
extends Spatial
class_name Foo
var bar: Bar
Bar.gd
extends Node
class_name Bar
But I get the following error:
'The identifier "Bar" isn't a valid type'