//SerialPort stream2 = new SerialPort("COM4", 115200 ); void Start () { //センサー入力をキーボードで代用するためシリアル通信停止 //OpenConnection (stream1); //各種スクリプトを使用可能に tF = GetComponent<testFunction> (); mF = GetComponent<moveFunction> (); gameOver = GameObject.Find ("GAMEOVER"); cE = gameOver.GetComponent<canvusEnable> (); audioSource = gameObject.GetComponent<AudioSource>(); first_fall = true; }
//SerialPort stream2 = new SerialPort("COM4", 115200 ); void Start () { //センサー入力をキーボードで代用するためシリアル通信停止 OpenConnection (stream1); //各種スクリプトを使用可能に tF = GetComponent<testFunction> (); mF = GetComponent<moveFunction> (); GameObject tmp = GameObject.Find("itirenn(kihon)"); motionF = tmp.GetComponent<motionFunction>(); gameOver = GameObject.Find ("GAMEOVER"); cE = gameOver.GetComponent<canvusEnable> (); audioSource = gameObject.GetComponent<AudioSource>(); for(int i = 0; i < 2; i++) { for(int j = 0; j < 20; j++) { moveCount[i,j] = 0; } } first_fall = true; Debug.Log("testFlg = " + testFlg); }