I want to port my game to windows phone 8. But there are many compile errors,such as type not exist.I know .net for windows phone is a subset of mono .net. So can i use windows runtime api.
Not in your scripts. We’re compiling scripts using Mono compiler, and then we run verification program to check whether you are not using any of the unavailable APIs. The only way to use Windows Runtime API is to write your own plugin. Here’s a guide how to do it:
http://docs.unity3d.com/Documentation/Manual/wp8-plugins-guide-csharp.html