Пример #1
0
        private void GuidRemoved()
        {
            _cachedGameObject     = null;
            _isGameObjectCacheSet = false;

            _cachedReference     = null;
            _isComponentCacheSet = false;

            OnGuidRemoved();
        }
Пример #2
0
        // convert from byte array to system guid and reset state
        public void OnAfterDeserialize()
        {
            _cachedGameObject     = null;
            _isGameObjectCacheSet = false;

            _cachedReference     = null;
            _isComponentCacheSet = false;

            if (_serializedGuid == null || _serializedGuid.Length != 16)
            {
                _serializedGuid = new byte[16];
            }
            _guid          = new System.Guid(_serializedGuid);
            addDelegate    = GuidAdded;
            removeDelegate = GuidRemoved;
        }