I Mean those fields.
[SerializeField]
public Type gameStateType;
[SerializeField]
public IGameStateParams gameStateParams;
I made in Editor methods to set those fields up, but, when click Play they go null.
I can deal with Type(all supported by my system types stored in dictionary, so i can just use their ID to get Type), but not with IWhatever implemented instance.
Can it be solved?
If not, is there any way to store in scene game object any IWhatever implemented instance?