Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Idleman |
I made an enemy scene with an enemy script. My plan is to export some variables like Speed, Damage etc, so I could set different values in the inspector. I want to load different random sprites so the enemies will look different. The idea is to export a variable enemy type, for example if the type = 1, load a certain array of sprites into the animation player randomly. This way, I could only use 1 scene for many different type of enemy. But I am not sure if there is a way to get the value which has been set in the inspector. Thank you.