Exemple #1
0
    // Use this for initialization
    void Start()
    {
        _animator = GetComponent <Animator>();

        _animator.AddEvent("PutGlass", AnimationEventType.STATE_ENTER, PutGlassEntered);

        _animator.AddEvent("Idle", AnimationEventType.STATE_EXIT_TRANSITION_START, anim => { Debug.Log("State idle exit transition started at" + Time.time); });
        _animator.AddEvent("Idle", AnimationEventType.STATE_END, IdleEnd);

        //otherAnimator.AddEventSMB("PutGlass", AnimationEventType.STATE_END, OtherPutGlassEntered);
    }