UIStringKey.cs 869 B

1234567891011121314151617181920212223242526272829303132333435
  1. //------------------------------------------------------------
  2. // Game Framework
  3. // Copyright © 2013-2021 loyalsoft. All rights reserved.
  4. // Homepage: http://www.game7000.com/
  5. // Feedback: http://www.game7000.com/
  6. //------------------------------------------------------------
  7. using UnityEngine;
  8. namespace UnityGameFramework.Runtime
  9. {
  10. /// <summary>
  11. /// 界面字符型主键。
  12. /// </summary>
  13. public sealed class UIStringKey : MonoBehaviour
  14. {
  15. [SerializeField]
  16. private string m_Key = null;
  17. /// <summary>
  18. /// 获取或设置主键。
  19. /// </summary>
  20. public string Key
  21. {
  22. get
  23. {
  24. return m_Key ?? string.Empty;
  25. }
  26. set
  27. {
  28. m_Key = value;
  29. }
  30. }
  31. }
  32. }