public static void Initialize() { if (Application.isPlaying) { #if UNITY_WEBPLAYER Web = new WebIO(); IO = Web; #elif SYSTEM_IO SystemIO = new SystemIOBase(); IO = SystemIO; #if UNITY_EDITOR Standalone = new EditorStandaloneIO(); IO = Standalone; #elif UNITY_STANDALONE Standalone = new StandaloneIO(); IO = Standalone; #elif UNITY_ANDROID Android = new AndroidIO(); IO = Android; #elif UNITY_MOBILE Mobile = new MobileIO(); IO = Mobile; #endif #endif } else { #if UNITY_WEBPLAYER Web = new WebIO(); IO = Web; #elif SYSTEM_IO SystemIO = new SystemIOBase(); IO = SystemIO; #if UNITY_EDITOR PlatformBase.Editor = new EditorCore(); IO = new EditorIO(); #endif #endif } }
protected override void OnClientDisconnected(WebIO.Net.ClientDisconnectedEventArgs e) { base.OnClientDisconnected(e); broadcastClientsList(); }