Advertisement
Guest User

Untitled

a guest
Sep 24th, 2017
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.50 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class SceneMaker : MonoBehaviour {
  5.     int bpm = 0;
  6.     int numframes = 0;
  7.     int num16th = 0;
  8.     song1 Song;
  9.    
  10.     // Use this for initialization
  11.     void Start () {
  12.         Song = new song1();
  13.         bpm = Song.bpm;
  14.     }
  15.    
  16.     // Update is called once per frame
  17.     void Update () {numframes++;
  18.    
  19.         if (numframes == (3600/bpm*0.25))//Calculates # of frames between beats divided into 16ths
  20.         {
  21.             int MakeAssets = 0;
  22.             MakeAssets = Song.GetAssets(num16th);
  23.         }
  24.     }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement