1

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"

Sergio Toledo Piza
  • 793
  • 1
  • 6
  • 27

0 Answers0