Both the cat and the birds have their own instance of Stats.gd. At the moment, this means that birds have a whole lot of redundant code they use. I added the counter for birds and coins to Stats.gd because I didn't fully understand how the file was meant to be used in the original tutorial version of this game. Also, PlayerStats.tscn is a singleton, which isn't a good design element for my modular, encapsulated, object-oriented vision of this game.
Both the cat and the birds have their own instance of Stats.gd. At the moment, this means that birds have a whole lot of redundant code they use. I added the counter for birds and coins to Stats.gd because I didn't fully understand how the file was meant to be used in the original tutorial version of this game. Also, PlayerStats.tscn is a singleton, which isn't a good design element for my modular, encapsulated, object-oriented vision of this game.