FairyGUI.Transition.CheckAllComplete C# (CSharp) Method

CheckAllComplete() public method

public CheckAllComplete ( ) : void
return void
        void CheckAllComplete()
        {
            if (_playing && _totalTasks == 0)
            {
                if (_totalTimes < 0)
                {
                    InternalPlay(0);
                }
                else
                {
                    _totalTimes--;
                    if (_totalTimes > 0)
                        InternalPlay(0);
                    else
                    {
                        _playing = false;
                        _owner.internalVisible--;

                        int cnt = _items.Count;
                        for (int i = 0; i < cnt; i++)
                        {
                            TransitionItem item = _items[i];
                            if (item.target != null)
                            {
                                if ((_options & OPTION_IGNORE_DISPLAY_CONTROLLER) != 0 && item.target != _owner)
                                    item.target.internalVisible--;

                                if (item.filterCreated)
                                {
                                    item.filterCreated = false;
                                    item.target.filter = null;
                                }
                            }
                        }

                        if (_onComplete != null)
                        {
                            PlayCompleteCallback func = _onComplete;
                            _onComplete = null;
                            func();
                        }
                    }
                }
            }
        }