SampleBase.cs 535 B

1234567891011121314151617181920212223
  1. using UnityEngine;
  2. namespace BestHTTP.Examples.Helpers
  3. {
  4. public abstract class SampleBase : MonoBehaviour
  5. {
  6. [Header("Common Properties")]
  7. public string Category;
  8. public string DisplayName;
  9. [TextArea]
  10. public string Description;
  11. public RuntimePlatform[] BannedPlatforms = new RuntimePlatform[0];
  12. protected SampleRoot sampleSelector;
  13. protected virtual void Start()
  14. {
  15. this.sampleSelector = FindObjectOfType<SampleRoot>();
  16. }
  17. }
  18. }