- using UnityEngine;
- namespace XGame.Framework.UI
- {
- public interface IComponentGetter
- {
- /// <summary>
- /// 获取指定序列化对象的Component
- /// </summary>
- /// <typeparam name="T"></typeparam>
- /// <param name="key">序列化对象的名字</param>
- /// <returns></returns>
- T GetComponent<T>(string key) where T : Component;
- }
- }
|