Esempio n. 1
0
        public void Copy(AnimationEventObject _event)
        {
            this.m_IsUpdateRequired = _event.IsUpdateRequired;

            this.IsActive          = _event.IsActive;
            this.UseCustomFunction = _event.UseCustomFunction;
            this.MethodName        = _event.MethodName;
            this.Time = _event.Time;

            this.ParameterType    = AnimationEventParameterType.None;
            this.ParameterString  = _event.ParameterString;
            this.ParameterFloat   = _event.ParameterFloat;
            this.ParameterInteger = _event.ParameterInteger;
            //TODO: this.ParameterBoolean = false;
        }
Esempio n. 2
0
        public void UpdateAnimationEvents(AnimationEvent[] _events)
        {
            //foreach( AnimationEventData _event in Events )
            for (int i = 0; i < Events.Count; i++)
            {
                Events[i].IsActive = false;
            }

            for (int i = 0; i < _events.Length; i++)
            {
                AnimationEventObject _event = GetAnimationEventData(_events[i].functionName);
                if (_event == null)
                {
                    AddAnimationDataEvent(_events[i], true);
                }
                else
                {
                    _event.IsActive = true;
                }
            }
        }
Esempio n. 3
0
 public AnimationEventObject(AnimationEventObject _event)
 {
     Copy(_event);
 }