예제 #1
0
	// Use this for initialization
	void Start () {
		Debug.Log ("In this scene, fastest Start is talkingMainScript");

		if (Application.loadedLevelName == "talkScene" ){
			_bgColor.color = Color.black;
		}

		thisUIText = this.transform.GetComponent<Text> ();
		_BGImage.color = new Color(0f, 0f, 0f, 0.3f);

		sVMS = staticValueManagerGetter.getManager ();
		sMB = soundManagerGetter.getManager ();

		//初期値 止める
		Time.timeScale = 0;

		//シーンファイルを取得
		//ない場合はログを吐いて初期値を入れる
		String sceneFileName = sVMS.getTalkingSceneName ();

		if (_forDebug) {
			this.startResouceRead (_forDebugFileName);
		} else {
			this.startResouceRead (sceneFileName);
		}

		_textMainFrame.GetComponent<Image> ().enabled = true;

		//メイン処理
		StartCoroutine ( loopText () );
	}