In my game right now players can choose between four different characters and the material is being saved in a global variable to be loaded on each level. It works fine when the game is started at the Choose Character level, but when I'm working on other levels characters don't have any material/texture.
I want to create a temporary FSM which checks to see if the Material is returning "None" and then load a temporary material. I was thinking the easiest thing would be to get the Material...compare the string to None and then load a default material if necessary...but I cannot figure out how to get the name of the material to compare it.
Is there a way to do that or another solution?
I might just create two separate FSM...one for production and one for building and turn them on or off, but would rather have a more elegant solution.
Thanks!