mirror of
https://github.com/Steffo99/beat-td.git
synced 2024-11-26 17:14:17 +00:00
21 lines
403 B
C#
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;
|
|
}
|
|
}
|