Resolve WES-89 "Justsign music"
This commit is contained in:
29
Assets/JustSign/Scripts/Song.cs
Normal file
29
Assets/JustSign/Scripts/Song.cs
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user