public IEnumerator StartCountAnimation() { float time = -1; float alpfa = 1; _scenario_ref = GameObject.FindObjectOfType<ScenarioSetter> (); _camera_animator_ref = GameObject.FindObjectOfType<CameraAnimator> (); //カウントはじめます!! for (int i = 0; i < _count_text.Length; i++) { while (time <= 1) { time += Time.deltaTime; //一秒ごとにテキストを更新 _text.text = _count_text [i]; alpfa = Easing.StaticInQuad (time,1,0,1); _text.color = new Color (1,1,1,alpfa); yield return null; } //カウンタをリセット alpfa = 1; time = 0; } //つかったオブジェクトを見えないようにします _text.text = ""; _brack_panel.enabled = false; //カメラ右上からどーん!からのたいとるロゴ表示 StartCoroutine (_camera_animator_ref.R_HighFromCameraToTaget(3.0f,_camera.CurrentCamera)); _title_logo_ref.doFadeIn = true; //カメラアニメーションが終わるのをまって.... while(time <= 3.0f){ time += Time.deltaTime; yield return null; } //シナリオ開始! _message_panel.enabled = true; _scenario_ref.SetRoute = ScenarioSetter.Route.Main; Destroy (this.gameObject); yield return null; }