Unity 框架

DebugComponent.cs 569B

1234567891011121314151617181920212223242526272829303132
  1. using TFramework;
  2. using UnityEngine;
  3. using System;
  4. using Object = UnityEngine.Object;
  5. using System.Collections.Generic;
  6. namespace TFramework
  7. {
  8. public class DebugComponent : MonoBehaviour
  9. {
  10. [Serializable]
  11. public struct ComponentInfo
  12. {
  13. public string m_name;
  14. public BaseComponent m_prefab;
  15. }
  16. [SerializeField]
  17. ComponentInfo[] m_components;
  18. public ComponentInfo[] Components => m_components;
  19. private int _curIndex;
  20. public void Awake()
  21. {
  22. }
  23. }
  24. }