Ejemplo n.º 1
0
    /// <summary>
    /// Handling the Intro Music State
    /// </summary>
    private void IntroState()
    {
        // Reset State
        nextClip    = null;
        currentClip = null;

        // Configure and start intro music
        currentClip = GenerateNewSource(introClip);
        currentClip.Play();

        // Update to new state
        clipState         = MusicTrackState.LOOPING;
        currentClipLength = currentClip.clip.length;
        currentFadeTime   = fades.introFadeOut;
    }
Ejemplo n.º 2
0
 /// <summary>
 /// Method to quickly start playing this music
 /// </summary>
 public void Play()
 {
     clipState = MusicTrackState.INTRO;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Sets the current state of this clip
 /// </summary>
 /// <param name="state"></param>
 public void SetState(MusicTrackState state)
 {
     clipState = state;
 }