The 2nd code appears to be more of an edit of the first code than inheriting from the first code.
The first bit of code uses generics to accomplish it’s task, but it’s also abstract, meaning it can’t actually be implemented as is… Unfortunately, whatever trick they’re using has left me a bit scratching my head as to how they’re accomplishing what they’re doing, I believe because I don’t have all of the instructions. As I have no idea where the code comes from, I don’t know who to ask for more clarification.
What are you looking for your LevelManager to accomplish? A SerializableDictionary may not even be the right approach for the task.
- What information does the LevelManager need to keep track of?
- What will the Custom Editor be handling?