using System.Collections.Generic; using UnityEngine; namespace XGame.Framework.ObjectCollection { /// /// 可序列化对象收集器 /// public interface IObjectCollector { Object this[string key] { get; } List Keys { get; } List Objects { get; } /// /// 必须确保序列化的是GameObject才可用 /// /// /// GameObject GetGameObject(string key); /// /// 必须确保序列化的是GameObject才可用 /// /// /// T GetComponent(string key) where T : Component; } }