Ways of communication between the extension and the project on the Unity3d

To make it simple, Twitch extensions are simply webpages. And you communicate with a server if you want.
On the side, you can have a chatbot or other twitch integration that can react to data sent by your extension.

But you will have to build these services