public void StopMusic() { IsPlaying = false; Dim1.SetActive(false); Dim2.SetActive(false); Dim3.SetActive(false); MusicSource.Stop(); //beforeY = -1; }
public void PlayMusic() { if (Table.BlockCount() > 0 && CurrentBlockTime <= 0) { CurrentBlockTime = Table.GetBlock(CurrentBlockIndex).BlockTime; } IsPlaying = true; Dim1.SetActive(true); Dim2.SetActive(true); Dim3.SetActive(true); }