Esempio n. 1
0
        public void Restart()
        {
            SceneFader.Instance.FadeIn(1, () =>
            {
                removementSystem.RemoveAllSpawnedObjects();
                SceneFader.Instance.FadeOut(.5f);

                CurrentBeat = 0;

                ActivateSabers();

                OnSongStart?.Invoke();
                IsPlaying = true;
                Invoke(nameof(PlaySong), CurrentSongDataManager.Instance.SongSpawningInfo.SecondEquivalentOfBeat * CurrentSongDataManager.Instance.SongSpawningInfo.HalfJumpDuration);
            });
        }
Esempio n. 2
0
 public static void SongStart()
 {
     OnSongStart?.Invoke();
 }