A simple system that makes use of Scriptable Objects to connect different classes. This leads to a cleaner and more reusable code.
- Go to Window/Package Manager
- Click on + Add package from git URL...
- Paste link for the wanted version.
To get a specific verion of the package, go to releases and copy the "Package Link".
- Create a channel scriptable objcte Create Asset/Channels/Channel Type.
- Add a field to your class for the created channel.
- Register the callback.
- Call Raise on the channel.