public void Start() { TFSystem.GetOrCreateInstance().AddListener(OnChanged); HudPanel.RegisterTab(this, (int)HudTabOrdering.TF); if (color.a == 0) { color.a = 1; } }
public void Start() { m_FillTexture = VisualizationUtils.MakeTexture(16, 16, new Color(0.125f, 0.19f, 0.25f)); m_Connection = ROSConnection.GetOrCreateInstance(); HudPanel.RegisterTab(this, (int)HudTabOrdering.Topics); HudPanel.RegisterTab(new VisualizationLayoutTab(this), (int)HudTabOrdering.Layout); LoadLayout(); m_Connection.ListenForTopics(OnNewTopic, notifyAllExistingTopics: true); }