I have built a story editor for my game. I would like to allow scripting in the story editor so I’m looking at different solutions. Say make the player’s gold go down by 10. My game uses a singleton to store the gold, so I’m looking for a way to do “Game.Instance.Gold -= 10”
In my investigation of ironpython I see examples of using the unity classes (making gameobjects) but nothing that shows how to access my objects/classes.
How do I access my objects from Python?