1
Fork 0
mirror of https://github.com/Steffo99/beat-td.git synced 2024-11-23 15:54:18 +00:00
beat-td/Assets/Scripts/SongData.cs

21 lines
403 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SongData : MonoBehaviour {
public float bpm;
public float delay;
public float songTime;
private AudioSource song;
void Start () {
songTime = delay;
song = GetComponent<AudioSource>();
song.Play();
}
void Update () {
songTime += Time.deltaTime;
}
}