void Start() { WireframeBoxes = SimulatorManager.Instance.WireframeBoxes; rangeTrigger.SetCallbacks(OnEnterRange, WhileInRange, OnExitRange); rangeTrigger.transform.localScale = MaxDistance * Vector3.one; nextSend = Time.time + 1.0f / Frequency; }
void Start() { MapOrigin = MapOrigin.Find(); WireframeBoxes = SimulatorManager.Instance.WireframeBoxes; rangeTrigger.SetCallbacks(WhileInRange); rangeTrigger.transform.localScale = MaxDistance * UnityEngine.Vector3.one; nextSend = Time.time + 1.0f / Frequency; }
private void Start() { Debug.Assert(SimulatorManager.Instance != null); WireframeBoxes = SimulatorManager.Instance.WireframeBoxes; foreach (var radar in radars) { radar.SetCallbacks(WhileInRange, OnExitRange); } nextPublish = Time.time + 1.0f / Frequency; }
void Start() { WireframeBoxes = SimulatorManager.Instance.WireframeBoxes; rangeTrigger.SetCallbacks(WhileInRange); rangeTrigger.transform.localScale = MaxDistance * Vector3.one; nextSend = SimulatorManager.Instance.CurrentTime + 1.0f / Frequency; MapOrigin = MapOrigin.Find(); startTime = SimulatorManager.Instance.CurrentTime; prevTimes = new Dictionary <string, double>(); isToRecord = false; }
protected override void Initialize() { Debug.Assert(SimulatorManager.Instance != null); WireframeBoxes = SimulatorManager.Instance.WireframeBoxes; foreach (var radar in radars) { radar.SetCallbacks(WhileInRange, OnExitRange); } nextPublish = Time.time + 1.0f / Frequency; SelfRigidBody = gameObject.GetComponentInParent <Rigidbody>(); }
void Start() { WireframeBoxes = SimulatorManager.Instance.WireframeBoxes; if (RangeTrigger == null) { RangeTrigger = GetComponentInChildren <RangeTrigger>(); } RangeTrigger.SetCallbacks(WhileInRange); RangeTrigger.transform.localScale = MaxDistance * Vector3.one; MapOrigin = MapOrigin.Find(); Detected = new Dictionary <uint, Tuple <Detected3DObject, Collider> >(); CurrentIDs = new HashSet <uint>(); StartCoroutine(OnPublish()); }
void Start() { WireframeBoxes = SimulatorManager.Instance.WireframeBoxes; MapManager = SimulatorManager.Instance.MapManager; NextSend = Time.time + 1.0f / Frequency; }
void Start() { WireframeBoxes = SimulatorManager.Instance.WireframeBoxes; }
protected override void Initialize() { WireframeBoxes = SimulatorManager.Instance.WireframeBoxes; MapOrigin = MapOrigin.Find(); }
protected override void Initialize() { WireframeBoxes = SimulatorManager.Instance.WireframeBoxes; MapManager = SimulatorManager.Instance.MapManager; NextSend = Time.time + 1.0f / Frequency; }