protected void _Destroyer(uLink.NetworkView networkView) { NetInstance instance = _currentNetInstance; try { NetInstance component = networkView.GetComponent <NetInstance>(); _currentNetInstance = component; if (component != null) { component.zzz___onpredestroy(); } UnityEngine.Object.Destroy(networkView.gameObject); } finally { _currentNetInstance = instance; } }
protected void _Destroyer(uLink.NetworkView networkView) { NetInstance netInstance = NetMainPrefab._currentNetInstance; try { NetInstance component = networkView.GetComponent <NetInstance>(); NetMainPrefab._currentNetInstance = component; if (component) { component.zzz___onpredestroy(); } UnityEngine.Object.Destroy(networkView.gameObject); } finally { NetMainPrefab._currentNetInstance = netInstance; } }