You could try decompiling the Unity game and reverse engineer it if you know how to do that. Another way would be to find the source code for the game that was already decompiled, but make sure you give credit to the person responsible if you're gonna release it as your own port.