예제 #1
0
        public void OnEnable()
        {
            Init();
            RebuildChilds(false);
            DirtyAll();
            CheckDirty();

            ChunkContentMap.Process(this);
        }
예제 #2
0
        public bool CheckDirty()
        {
            bool any = false;

            for (int i = 0; i < allMods.Count; i++)
            {
                if (allMods[i].CheckDirty())
                {
                    any = true;
                }
            }

            if (any)
            {
                RecalculateBounds();
                ChunkContentMap.Process(this);
            }

            return(any);
        }