SampleManager.cs 711 B

123456789101112131415161718192021222324252627282930313233
  1. namespace Unity.RenderStreaming.Samples
  2. {
  3. internal class SampleManager
  4. {
  5. static SampleManager s_instance;
  6. public static SampleManager Instance
  7. {
  8. get
  9. {
  10. if (s_instance == null)
  11. s_instance = new SampleManager();
  12. return s_instance;
  13. }
  14. }
  15. public RenderStreamingSettings Settings
  16. {
  17. get
  18. {
  19. return m_settings;
  20. }
  21. }
  22. RenderStreamingSettings m_settings;
  23. public void Initialize()
  24. {
  25. if(m_settings == null)
  26. m_settings = new RenderStreamingSettings();
  27. }
  28. }
  29. }