void Update() { float musicTime = music.time; if (musicTime > 103 && !resultLoaded) //103 { resultLoaded = true; ScreenFadeManager.Instance.FadeIn(fadeParam.time, fadeParam.color, delegate { Debug.Log("Fade In OK"); SceneManager.LoadScene("Result"); iTween.tweens.Clear(); // メインに遷移後すぐにFadeOutを完了させる ScreenFadeManager.Instance.FadeOut(0.01f, new Color(1.0f, 1.0f, 1.0f), delegate { Debug.Log("OK"); }); }); return; } foreach (var motionOrder in motionOrders) { if (!motionOrder.hasUsed) { if (motionOrder.startTimePoint <= musicTime) { // DEBUG Debug.Log("<color=green>" + motionOrder.motionOrderObject.name + "</color> : " + musicTime); string str = ""; for (int i = 0; i < motionOrder.motionOrderObject.order.Count; i++) { str = str + motionOrder.motionOrderObject.order[i] + ", "; } Debug.Log(str); motionOrder.hasUsed = true; currentMotionOrder = motionOrder.motionOrderObject; StartNextDemo(); StartNextAction(); //同時並行で入力も受け付ける仕様に変更 } } } }
void Update() { float musicTime = music.time; if (musicTime > 103 && !resultLoaded) { //103 resultLoaded = true; ScreenFadeManager.Instance.FadeIn(fadeParam.time, fadeParam.color, delegate { Debug.Log("Fade In OK"); SceneManager.LoadScene("Result"); iTween.tweens.Clear(); // メインに遷移後すぐにFadeOutを完了させる ScreenFadeManager.Instance.FadeOut(0.01f, new Color(1.0f, 1.0f, 1.0f), delegate { Debug.Log("OK"); }); }); return; } foreach (var motionOrder in motionOrders) { if (! motionOrder.hasUsed) { if (motionOrder.startTimePoint <= musicTime) { // DEBUG Debug.Log ("<color=green>" + motionOrder.motionOrderObject.name + "</color> : " + musicTime); string str = ""; for (int i = 0; i< motionOrder.motionOrderObject.order.Count; i++){ str = str + motionOrder.motionOrderObject.order[i] + ", "; } Debug.Log(str); motionOrder.hasUsed = true; currentMotionOrder = motionOrder.motionOrderObject; StartNextDemo (); StartNextAction (); //同時並行で入力も受け付ける仕様に変更 } } } }