Files
unity-application/Assets/JustSign/Scripts/Song.cs
2023-05-14 20:18:29 +00:00

29 lines
719 B
C#

using UnityEngine;
/// <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;
}