Resolve WES-89 "Justsign music"

This commit is contained in:
Lukas Van Rossem
2023-03-25 11:34:08 +00:00
parent fee989006c
commit 668b769094
18 changed files with 307 additions and 57 deletions

View File

@@ -0,0 +1,29 @@
using UnityEngine;
using UnityEngine.Audio;
/// <summary>
/// Class for holding all (static) data about a certain song
/// </summary>
[CreateAssetMenu(menuName = "Create new Scriptable/Song")]
public class Song : ScriptableObject
{
/// <summary>
/// Time at which the first symbol should enter the hit zone
/// </summary>
public float firstSymbolTime;
/// <summary>
/// Determines every how many seconds a symbol should enter the hit zone
/// </summary>
public float spawnPeriod;
/// <summary>
/// Duration of the song in seconds
/// </summary>
public int duration;
/// <summary>
/// The actual audio source
/// </summary>
public AudioClip song;
}