int GetWorldByEnum(WorldsEnum wEnum) { switch (wEnum) { case WorldsEnum.world_1: return(1); case WorldsEnum.world_2: return(2); case WorldsEnum.world_3: return(3); case WorldsEnum.world_4: return(4); case WorldsEnum.world_5: return(5); case WorldsEnum.world_6: return(6); default: Debug.Log("Using an unimplemented world !"); return(-1); } }
int GetWorldByEnum(WorldsEnum wEnum) { switch (wEnum) { case WorldsEnum.world_1: return 1; case WorldsEnum.world_2: return 2; case WorldsEnum.world_3: return 3; case WorldsEnum.world_4: return 4; case WorldsEnum.world_5: return 5; case WorldsEnum.world_6: return 6; default: Debug.Log("Using an unimplemented world !"); return -1; } }