For example, I have a var a
and want to access it with a function:
extension SKNode {
static var a = true
func aaa() -> Bool {
return self.a
}
}
When I try this, it says "Static member 'a' cannot be used on instance of type SKNode"