/**
         *序列化组件数据
         */
        private static bool SerializedComponent(UnityEngine.GameObject obj, string compClass, UnityEngine.Component comp)
        {
            var parserList = componentParsers[compClass];

            if (parserList == null)
            {
                return(false);
            }

            var flag = false;

            foreach (var parser in parserList)
            {
                var compJson = new MyJson_Object();
                //组件必须拥有的属性
                compJson.SetComponent(comp.GetInstanceID(), parser.className);
                if (!parser.WriteToJson(obj, comp, compJson))
                {
                    continue;
                }

                ResourceManager.instance.AddCompJson(compJson);
                flag = true;
            }

            return(flag);
        }