示例#1
0
        internal void SetVisibility(bool value)
        {
            if (m_actor != null)
            {
                m_actor.SetVisibility(value);
                UpdateFoliage(!value);

                if (value)
                {
                    MyMeshes.ReloadVoxelCell(m_mesh);
                }
                else
                {
                    MyMeshes.UnloadVoxelCell(m_mesh);
                }
            }
        }