コード例 #1
0
        public void Update()
        {
            if (m_obj.activeSelf == false)
            {
                return;
            }

            if (m_layerData == null)
            {
                return;
            }

            for (int height = 0; height < m_layerData.BlockNumZ; height++)
            {
                for (int width = 0; width < m_layerData.BlockNumX; width++)
                {
                    TerrainBlock grid = m_TerrainBlocks[width + height * (int)m_layerData.BlockNumX];
                    if (grid != null)
                    {
                        grid.UpdateTerrainBlock();
                    }
                }
            }
        }