I'm trying to convert a memory game into a Guess Who style game.
I'm trying to call two variables (face and back) from one script, Card.
(Card.gd)
extends TextureButton
class_name Card
var face
var back
(GameManager.gd)
extends Node
var f = Card.face
var b = Card.back
When I run the game to test it, the error in the title pops up, both for 'face' and 'back'.
Does anyone know how to fix it?