Exemplo n.º 1
0
    void Awake()
    {
        _currentAudioSource = GetComponent <AudioSource>();

        currentSequence = initialSequence;
        sequenceIndex   = -1;

        if (playOnAwake)
        {
            PlayNext();
        }
    }
Exemplo n.º 2
0
 private void DoTransition()
 {
     currentSequence = nextSequence;
     sequenceIndex   = -1;
     nextSequence    = null;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Transition the argument sequence at the end of the current clip.
 /// </summary>
 public void Transition(AudioClipSequence sequence)
 {
     willTransition = true;
     nextSequence   = sequence;
 }
Exemplo n.º 4
0
 /// <summary>
 /// Transition to current sequence's nextSequence at the end of the current clip.
 /// </summary>
 public void Transition()
 {
     willTransition = true;
     nextSequence   = currentSequence.nextSequence;
 }