public static NetworkMonitor Create(Transform root) { if (g_monitor == null) { GameObject go = new GameObject("NetworkMonitor"); go.transform.parent = root; g_monitor = go.AddComponent <NetworkMonitor>(); g_monitor.Init(); } return(g_monitor); }