private void Update() { if (ToggleToGenerate != _previous) { _points = GenerateRandomSet3D(GenerateRadius, GenerateCountMin, GenerateCountMax); _box = Box3.CreateFromPoints(_points); } _previous = ToggleToGenerate; }