With this framework you will be able to use scriptable objects as variables and events. This can help you decouple your dependencies between classes and work in a more intuitive way.
Right click on your project window and select Create->Scriptable Object->...
-
Using the package manager -> Add the following dependency to your 'manifest.json': "com.cordonez.customscriptableobjects": "https://github.com/cordonez/CustomScriptableObjects.git"
-
Clone or download the repository into your 'Assets' folder.
Heavily inspired by this fantastic talk of Ryan Hipple https://www.youtube.com/watch?v=raQ3iHhE_Kk
Any issue or improvement is welcome! :)