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

22 lines
403 B
C#
Raw Normal View History

2018-04-21 14:29:29 +00:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SongData : MonoBehaviour {
public float bpm;
public float delay;
public float songTime;
2018-04-22 12:07:55 +00:00
private AudioSource song;
2018-04-21 14:29:29 +00:00
void Start () {
songTime = delay;
2018-04-22 12:07:55 +00:00
song = GetComponent<AudioSource>();
song.Play();
2018-04-21 14:29:29 +00:00
}
void Update () {
songTime += Time.deltaTime;
}
}