Hi,
I’m trying to define a Enum in a script file which I want to use in all scripts in the project. I defined in script A:
enum GameMode
{
Easy = 0,
Hard = 1,
Ultra = 2
}
So my basic problem is that I can’t put before the enum a “static” to have it like this:
Script B:
function doSomethingBasedOnGameModes(gamemode : GameMode) {
…
Putting a static before the enum throws an error, looks like static not allowed for enums. How can I “import” this enum or make it publically available? Or is there any other preferred method of making enums public?
Thanks for your help,
Martin