Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Collections;
- public class SceneMaker : MonoBehaviour {
- int bpm = 0;
- int numframes = 0;
- int num16th = 0;
- song1 Song;
- // Use this for initialization
- void Start () {
- Song = new song1();
- bpm = Song.bpm;
- }
- // Update is called once per frame
- void Update () {numframes++;
- if (numframes == (3600/bpm*0.25))//Calculates # of frames between beats divided into 16ths
- {
- int MakeAssets = 0;
- MakeAssets = Song.GetAssets(num16th);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement