Esempio n. 1
0
        public string addTrigger(System.Action <IGAFMovieClip> _Callback, uint _FrameNumber)
        {
            if (_FrameNumber < getFramesCount())
            {
                GAFFrameEvent triggerEvent = new GAFFrameEvent(_Callback);
                if (m_FrameEvents.ContainsKey(_FrameNumber))
                {
                    m_FrameEvents[_FrameNumber].Add(triggerEvent);
                }
                else
                {
                    m_FrameEvents.Add(_FrameNumber, new List <GAFFrameEvent>());
                    m_FrameEvents[_FrameNumber].Add(triggerEvent);
                }

                return(triggerEvent.id);
            }

            return(string.Empty);
        }
Esempio n. 2
0
        public string addTrigger(System.Action<IGAFMovieClip> _Callback, uint _FrameNumber)
        {
            if (_FrameNumber < getFramesCount())
            {
                GAFFrameEvent triggerEvent = new GAFFrameEvent(_Callback);
                if (m_FrameEvents.ContainsKey(_FrameNumber))
                {
                    m_FrameEvents[_FrameNumber].Add(triggerEvent);
                }
                else
                {
                    m_FrameEvents.Add(_FrameNumber, new List<GAFFrameEvent>());
                    m_FrameEvents[_FrameNumber].Add(triggerEvent);
                }

                return triggerEvent.id;
            }

            return string.Empty;
        }