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); }); }
public static void SongStart() { OnSongStart?.Invoke(); }