blob: d561399f2850d3ae0108a2f5f198aeed4f6373f7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
namespace UnityEngine
{
internal static class ClassLibraryInitializer
{
static void Init()
{
#if !UNITY_FLASH && !UNITY_WEBGL && !UNITY_WINRT
UnityLogWriter.Init();
#endif
#if UNITY_STANDALONE || (WEBPLUG && !UNITY_NACL)
if (Application.platform.ToString().Contains("WebPlayer"))
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.DefaultSurrogateSelector = new UnityEngine.Serialization.UnitySurrogateSelector();
#endif
}
}
}
|