コード例 #1
0
        //리스트를 초기화하자.
        /// <summary>
        /// Initialize
        /// </summary>
        public void InitAndLink()
        {
            if (_animPlayDataList == null)
            {
                _animPlayDataList = new List <apAnimPlayData>();
            }
            //_animPlayDataList.Clear();

            if (_animPlayQueues == null)
            {
                _animPlayQueues = new List <apAnimPlayQueue>();
            }
            else
            {
                //일단 모두 Release를 한다.
                for (int i = 0; i < _animPlayQueues.Count; i++)
                {
                    _animPlayQueues[i].ReleaseForce();
                }

                _animPlayQueues.Clear();
            }

            _animPlayQueues.Clear();
            for (int i = MIN_LAYER_INDEX; i <= MAX_LAYER_INDEX; i++)
            {
                apAnimPlayQueue newPlayQueue = new apAnimPlayQueue(i, _portrait, this);
                _animPlayQueues.Add(newPlayQueue);
            }

            if (_mecanim == null)
            {
                _mecanim   = new apAnimPlayMecanim();
                _isMecanim = false;
            }


            _isInitAndLink = true;
        }