I need help to connect a singleton to Sprite.texture inside Player scene where i can change the texture using a script i wrote.
What should i write in singleton to access the sprite variable mentiond?.
Root__
..... |
.... Player
............... |
................ Sprite.texture
to detail my issue: that whenever I change the current scene the Player "Player.tscn" will be deleted and all current values will be lost. and i can't figure how to save the variables in Player to the singleton so whichever the new scene is, it should bring back the Player values from singleton.
Thanks for your precious time.