protected override void UpdateSense() { if (this.RaycastDistances.IsNullOrEmpty() || this.RaycastDistances.Length != this.nrOfRays) { this.RaycastDistances = new CustomTuple <float, Collider> [this.nrOfRays]; for (var i = 0; i < this.RaycastDistances.Length; i++) { this.RaycastDistances[i] = CustomTuple.Create <float, Collider>(-1f, null); } this._raycastColors = new Color[this.nrOfRays]; } Utils.FovAction(this.transform.up, this.transform.forward, this.nrOfRays, this.fov, this.RaycastAction); }