Esempio n. 1
0
        static internal void HandleChange(int entity, int tag)
        {
            if (Toolbox.isQuittingOrChangingScene())
            {
                return;
            }

            if (!entity.CheckMonoConditions())
            {
                return;
            }

            List <GroupBase> groups;

            if (groupsInclude.TryGetValue(tag, out groups))
            {
                var len = groups.Count;

                for (int i = 0; i < len; i++)
                {
                    groups[i].TagsHaveChanged(entity);
                }
            }

            if (groupsDeclude.TryGetValue(tag, out groups))
            {
                var len = groups.Count;
                for (int i = 0; i < len; i++)
                {
                    groups[i].TagsHaveChanged(entity);
                }
            }
        }
Esempio n. 2
0
        static internal void HandleChange(int entity, int tag)
        {
            if (Toolbox.isQuittingOrChangingScene())
            {
                return;
            }

            if (!entity.CheckMonoConditions())
            {
                return;
            }



            DelayTagEvent dte;

            dte.entity = entity;
            dte.tag    = tag;

            if (ProcessingActorsAdd.tagsToChange.Length <= ProcessingActorsAdd.lenTagsToChange)
            {
                int len = ProcessingActorsAdd.lenTagsToChange << 1;
                Array.Resize(ref ProcessingActorsAdd.tagsToChange, len);
            }
            ProcessingActorsAdd.tagsToChange[ProcessingActorsAdd.lenTagsToChange++] = dte;
        }