I am working on a game for windows store app but there are some problems. My unity version is 4.2.2 and using visual studio 2012. I have two questions:
1.When I have used unity to build and run a solution of type XAML C#. The result of visual studio after compiling said that
error WMC9999: Cannot find type System.Collections.Hashtable in module mscorlib.dll
I have already check another answer for that but it doesn’t work for me. If I delete the reference of Boo.lang.dll; then there will be more errors about that.
2.Following that answer, I can compile the D3D11 C# sln in visual studio 2012. But I can only see my game menu but do nothing else, I cannot touch it. So,I checked the exceptions TypeInitializationException about some codes before simulator works and I found some difference about that. It might be no use to the C# classes inherited from a js class?
I have a C# class A inherited form js class B, and B is inherited from MonoBehaviour. Is that possible the functionality of js class B or MonoBehaviour could not be seen in the class A? I am not so sure. Is that better or necessarily to convert js class to C# class? Does it affect the game? The followings are some codes about TypeInitializationException.
//Some Exceptions code sample
//in C# class MenuView, MenuView is inherited from a js class BasicView which is inherited from MonoBehaviour.
public static void create ()
{
if (MenuView.delegates() == null)
ViewPlay.delegates.gameObject.AddComponent<MenuView>();
MenuView.delegates().expireView();
}
//in ViewPlay.cs
void Awake ()
{
delegates = this;
//This code has TypeInitializationException and MainInfoView is inherited from the js class BasicView
gameObject.AddComponent<MainInfoView>();
//This code is normal, BackGroundView is inherited from C# class only.
gameObject.AddComponent<BackGroundView>();
}