private void GuidRemoved() { _cachedGameObject = null; _isGameObjectCacheSet = false; _cachedReference = null; _isComponentCacheSet = false; OnGuidRemoved(); }
// 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; }