예제 #1
0
        public void OnAfterDeserialize()
        {
            Components.Clear();
            foreach (var row in ComponentsJSON)
            {
                var type = Type.GetType(row.AssemblyQualifiedName) ?? LegacyManager.GetTypeFromLegacy(row.AssemblyQualifiedName);

                if (type == null)
                {
                    Debug.LogError("Couldn't get type " + row.AssemblyQualifiedName);
                }

                Components.Add(
                    (ConnectionConfigurationBase)
                    JSONSerializer.Deserialize(type, row.JsonText,
                                               row.SerializedObjects));
            }
        }