コード例 #1
0
 void Start()
 {
     WireframeBoxes = SimulatorManager.Instance.WireframeBoxes;
     rangeTrigger.SetCallbacks(OnEnterRange, WhileInRange, OnExitRange);
     rangeTrigger.transform.localScale = MaxDistance * Vector3.one;
     nextSend = Time.time + 1.0f / Frequency;
 }
コード例 #2
0
 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;
 }
コード例 #3
0
ファイル: RadarSensor.cs プロジェクト: team19032/team19032
 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;
 }
コード例 #4
0
 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;
 }
コード例 #5
0
        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>();
        }
コード例 #6
0
        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());
        }
コード例 #7
0
 void Start()
 {
     WireframeBoxes = SimulatorManager.Instance.WireframeBoxes;
     MapManager     = SimulatorManager.Instance.MapManager;
     NextSend       = Time.time + 1.0f / Frequency;
 }
 void Start()
 {
     WireframeBoxes = SimulatorManager.Instance.WireframeBoxes;
 }
コード例 #9
0
 protected override void Initialize()
 {
     WireframeBoxes = SimulatorManager.Instance.WireframeBoxes;
     MapOrigin      = MapOrigin.Find();
 }
コード例 #10
0
 protected override void Initialize()
 {
     WireframeBoxes = SimulatorManager.Instance.WireframeBoxes;
     MapManager     = SimulatorManager.Instance.MapManager;
     NextSend       = Time.time + 1.0f / Frequency;
 }