Beispiel #1
0
        void Update()
        {
            if (Application.isPlaying && m_applyContactsEmptyFix)
            {
                m_applyContactsEmptyFix = false;
                var valueIter = m_dicChunkCache.Values.GetEnumerator();
                while (valueIter.MoveNext())
                {
                    TilemapChunk chunk = valueIter.Current;
                    if (chunk)
                    {
                        chunk.ApplyContactsEmptyFix();
                    }
                }
            }

            if (m_markForUpdateMesh)
            {
                m_markForUpdateMesh     = false;
                m_applyContactsEmptyFix = ColliderType == eColliderType._3D;
                UpdateMeshImmediate();
            }
        }