ConfigAttribute.cs 326 B

12345678910111213
  1. using System;
  2. namespace Fort23.GameData
  3. {
  4. [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, AllowMultiple = true, Inherited = false)]
  5. public class ConfigAttribute : Attribute
  6. {
  7. /// <summary>
  8. /// 资源名字
  9. /// </summary>
  10. public string prefab { get; set; }
  11. }
  12. }