【m】插件上传
This commit is contained in:
33
Packages/com.unity.renderstreaming@3.1.0-exp.9/Samples~/Example/Scripts/SampleManager.cs
vendored
Normal file
33
Packages/com.unity.renderstreaming@3.1.0-exp.9/Samples~/Example/Scripts/SampleManager.cs
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
namespace Unity.RenderStreaming.Samples
|
||||
{
|
||||
internal class SampleManager
|
||||
{
|
||||
static SampleManager s_instance;
|
||||
|
||||
public static SampleManager Instance
|
||||
{
|
||||
get
|
||||
{
|
||||
if (s_instance == null)
|
||||
s_instance = new SampleManager();
|
||||
return s_instance;
|
||||
}
|
||||
}
|
||||
|
||||
public RenderStreamingSettings Settings
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_settings;
|
||||
}
|
||||
}
|
||||
|
||||
RenderStreamingSettings m_settings;
|
||||
|
||||
public void Initialize()
|
||||
{
|
||||
if (m_settings == null)
|
||||
m_settings = new RenderStreamingSettings();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user