예제 #1
0
 public void SetVoxel(bool on)
 {
     if (on == false)
     {
         return;
     }
     m_ModelViewer.Hide();
     m_VoxelViewer.Show(m_ModelMgr.currentPage.voxelData);
 }
예제 #2
0
 public void MovePage(bool moveNext)
 {
     // Move PageIndex
     if (moveNext)
     {
         m_PageIndex = Mathf.Min(m_PageIndex + 1, m_Pages.Length - 1);
     }
     else
     {
         m_PageIndex = Mathf.Max(0, m_PageIndex - 1);
     }
     // Refresh Model&Voxel Viewer
     if (m_ModelViewer.isShow)
     {
         m_ModelViewer.Show(m_Pages[m_PageIndex].model);
     }
     else
     {
         m_VoxelViewer.Show(m_Pages[m_PageIndex].voxelData);
     }
 }