// Update is called once per frame void Update() { if (!_lidar_script.GetLidarInitialized()) { return; } if (updateCounter % UPDATE_FREQ == 0) { UpdateBelief(); _beliefPosition.transform.position = GetBeliefAgentPosition(); } updateCounter++; }