Ejemplo n.º 1
0
    // 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];
            }
        }
    }
Ejemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     _bezierAnimation = GetComponent <BezierAnimation>();
 }