/// <summary>
        /// 附加组件
        /// </summary>
        /// <param name="component">组件</param>
        internal void AppendComponent(ECS_Component component)
        {
            Type type = component.GetType();

            if (!_components.ContainsKey(type))
            {
                _components.Add(type, component);
                Main.m_ECS.SetDirty();
            }
        }
        /// <summary>
        /// 移除组件
        /// </summary>
        /// <param name="component">组件</param>
        internal void RemoveComponent(ECS_Component component)
        {
            Type type = component.GetType();

            if (_components.ContainsKey(type))
            {
                _components.Remove(type);
                Main.m_ECS.SetDirty();
            }
        }