// Update is called once per frame void Update() { if (flag == 1) { float time = -1; if (music != null) { time = music.time; } for (int i = 0; i < fileNum; i++) { datas [i].run(time); } if (time >= maxTime) { music.time = 0; bg.setPlace(); replaceCount++; if (replaceCount >= creditTiming) { Application.LoadLevel("StaffRoll"); } } if (Input.GetButtonDown("Jump")) { Application.LoadLevel("CharaSelect"); } } }
// Update is called once per frame void Update() { if (flag == 1) { //print ("hoge"); float time = -1; if (music != null) { time = music.time; } frame = getFrameFromSec(time); //print ("frame "+time); for (int i = 0; i < fileNum; i++) { datas [i].run(frame); } if (time > maxTime) { //if(time>music.clip.length){ music.time = 0; bg.setPlace(); } //if (Input.GetKey(KeyCode.Space)){ if (Input.GetButtonDown("Jump")) { Application.LoadLevel("CharaSelect"); } } }