// Use this for initialization void Start() { // initialize events _eventDict.Clear(); foreach (var namedEvent in _namedEvents) { _eventDict.Add(namedEvent.ClipName, namedEvent.UpdateEvent); } _animation = GetComponent <BezierAnimation>(); if (_animation.Recorder != null) { // setup first event string clipName = _animation.Recorder.currentClip.name; _lastClipNameHasCode = clipName.GetHashCode(); if (_eventDict.ContainsKey(clipName)) { _lastEvent = _eventDict[clipName]; } } }
// Use this for initialization void Start() { _bezierAnimation = GetComponent <BezierAnimation>(); }