Communication between script and solution's code?

How can I call a method that I added in my exported solution from the Unity script ?
Do I have to write a plugin for that, event if it’s just pure C# ? Thanks !

Hello. Unfortunately, it’s currently impossible to do that at this time - unity script compiler knows nothing about your exported solution.

However, there are 2 ways of making it work:

  1. Registering callbacks using delegates. You can add delegates to your scripts and you could set them in the exported visual studio solution. That way, when your scripts call those delegates, your method in the visual studio solution will be called.

  2. Compile the methods you want to call from Unity scripts to a separate .DLL file and place it under Assets/Plugins/Metro or Assets/Plugins/WP8 (depending on your platform of choice).

Thanks Tautvydas I will try these methods