I took a short break during some coding to go for a bike ride. Darn nice out there, although still a bit chilly on the gloved hands if you're moving fast.
I ran into a few issues getting the basic board controller working. I dragged the sprites onto the game objects rather than into the sprite controllers, so when I ran the board creation loops, there was nothing to create. Had me at a loss because my code looked spot on but I was still seeing a great big empty field. Took a lot of work to clean it all up because modifying the prefabs resulted in messing up my board controller.
The tutorial walked me through a singleton pattern attaching the game controller to the camera by checking for the singleton instance. I'm never going to believe a Unity programmer again when they tell me they don't know any software patterns.
There's my Win32 meltdown that crashed Unity. I'm pretty sure it's because I made an instance of the prefab and then deleted the prefab in an attempt to make a new prefab. I can't be certain, but I suspect it's like having an instance of an object with no object? The important thing is not to do it - very messy.
No comments:
Post a Comment