GameFrameworkComponent.cs 716 B

12345678910111213141516171819202122232425
  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 abstract class GameFrameworkComponent : MonoBehaviour
  14. {
  15. /// <summary>
  16. /// 游戏框架组件初始化。
  17. /// </summary>
  18. protected virtual void Awake()
  19. {
  20. GameEntry.RegisterComponent(this);
  21. }
  22. }
  23. }