您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
31 行
578 B
31 行
578 B
using System;
|
|
using UnityEngine;
|
|
|
|
namespace UnityEngine.Perception
|
|
{
|
|
public class EgoMarker : MonoBehaviour
|
|
{
|
|
public string Description;
|
|
Ego m_Ego;
|
|
|
|
public Ego Ego
|
|
{
|
|
get
|
|
{
|
|
EnsureEgoInitialized();
|
|
return m_Ego;
|
|
}
|
|
}
|
|
|
|
void Start()
|
|
{
|
|
EnsureEgoInitialized();
|
|
}
|
|
|
|
void EnsureEgoInitialized()
|
|
{
|
|
if (m_Ego == default)
|
|
m_Ego = SimulationManager.RegisterEgo(Description);
|
|
}
|
|
}
|
|
}
|