30 lines
745 B
C#
30 lines
745 B
C#
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;
|
|
}
|