|
I was just wondering what the best practice was for constructors and custom classes. Currently I have a MonoBehaviour that contains a List that contains a CustomClassWithoutSerializableAttribute. I want to know the best way to default the third class. It looks like the following: Character.cs Ability.cs Damage.cs Damage is null at the end of this chain of events. I've been trying to find the best practice for this. Eventually I want to move Ability out of the Inspector, but for now, I want to be able to iterate quickly on this and want to know the best practice for this type of thing. Should Ability be deriving from ScriptableObject and initializing m_damage in the Start() function?
(comments are locked)
|
