示例#1
0
 private void Awake()
 {
     Intro           = gameObject.AddComponent <SongyPart> ();
     Loop            = gameObject.AddComponent <SongyPart> ();
     Outro           = gameObject.AddComponent <SongyPart> ();
     Loop.ShouldLoop = true;
 }
示例#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);
     }
 }
示例#3
0
 public void StopAndPlayNext(SongyPart nextSongPart)
 {
     Stop();
     nextSongPart.SchedulePlay(EndsPlayingDspTime);
 }
示例#4
0
            public void PlayClipAfter(SongyPart songPart)
            {
                var dspTime = songPart.EndsPlayingDspTime;

                SchedulePlay(dspTime);
            }