您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

19 行
649 B

using System;
namespace UnityEngine.Perception.Randomization.Scenarios
{
/// <summary>
/// The base class of scenarios with serializable constants
/// </summary>
/// <typeparam name="T">The type of scenario constants to serialize</typeparam>
public abstract class Scenario<T> : ScenarioBase where T : ScenarioConstants, new()
{
/// <summary>
/// A construct containing serializable constants that control the execution of this scenario
/// </summary>
public T constants = new T();
/// <inheritdoc/>
public override ScenarioConstants genericConstants => constants;
}
}