コード例 #1
0
ファイル: NetMainPrefab.cs プロジェクト: Virobeast2/RCLIENT
    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;
        }
    }
コード例 #2
0
    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;
        }
    }