How do I receive a certain exit code from a Unity game when I close the game?
(For example: I have a Windows Forms game launcher, call the game from there and then want to send back an exit code from the game to the launcher if the game gets closed)
Thanks for your answer! Has someone another idea how I can transfer data from the Unity game back to my game launcher?
(I have a Windwos Forms C# application as my game launcher and I start the game from there, now I want to send some data back from the game to the launcher. I only need to send two different states, nothing more)