private void _traverse_path() { _m_cam.transform.position = point_array[_index].transform.position; _m_cam.transform.rotation = point_array[_index].transform.rotation; if (_active_state == State.OURS) { grid.set_dlods(_m_cam); } if (save_images) { Texture2D tex = _take_screen_shoot(img_width, img_height); File.WriteAllBytes(active_folder + "/" + _index.ToString() + ".png", tex.EncodeToPNG()); Destroy(tex); } ++_index; if (_index >= point_array.Count) { _finished = true; _index = 0; } }
private void Update() { grid.set_dlods(_cam); }