Exemple #1
0
 private void Awake()
 {
     Intro           = gameObject.AddComponent <SongyPart> ();
     Loop            = gameObject.AddComponent <SongyPart> ();
     Outro           = gameObject.AddComponent <SongyPart> ();
     Loop.ShouldLoop = true;
 }
Exemple #2
0
 void AddClips(string[] clipNames, SongyPart songyPart)
 {
     foreach (var name in clipNames)
     {
         if (GetClipByName(name) != null)
         {
             Debug.LogWarning($"You are trying to add the SongyClip named {name} twice. Dont do that plz. ");
             continue;
         }
         songyPart.AddClip(FolderPath, name);
     }
 }
Exemple #3
0
 public void StopAndPlayNext(SongyPart nextSongPart)
 {
     Stop();
     nextSongPart.SchedulePlay(EndsPlayingDspTime);
 }
Exemple #4
0
            public void PlayClipAfter(SongyPart songPart)
            {
                var dspTime = songPart.EndsPlayingDspTime;

                SchedulePlay(dspTime);
            }