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

24 行
658 B

using System;
namespace UnityEngine.Experimental.Perception.Randomization.Randomizers
{
/// <summary>
/// Derive the RandomizerTag class to create new tag components.
/// RandomizerTags are used to help randomizers query for a set of GameObjects to randomize.
/// </summary>
[Serializable]
public abstract class RandomizerTag : MonoBehaviour
{
RandomizerTagManager tagManager => RandomizerTagManager.singleton;
void Awake()
{
tagManager.AddTag(GetType(), gameObject);
}
void OnDestroy()
{
tagManager.RemoveTag(GetType(), gameObject);
}
}
}