using UnityEngine; using System.Collections; using AX.NetworkSystem; public sealed class NetworkSystem : MonoBehaviour { void Awake() { DontDestroyOnLoad(gameObject); FileTransfer.Initialize(); } void Update() { NetworkMessageDispatcher.Update(); } void OnDisable() { NetworkMessageDispatcher.Clear(); } void OnDestroy() { FileTransfer.Dispose(); } }