Beispiel #1
0
 void Update()
 {
     CrTime += Time.deltaTime;
     if (CrTime > 0.1)
     {
         for (int j = 40; j < 101; j++)
         {
             if (KeyCode[j, i])
             {
                 GameObject Notu    = (GameObject)Resources.Load("Key");
                 GameObject Key_obj = Instantiate(Notu, new Vector3((((j + 1) - 70) * 5), 150f, -1f), Quaternion.identity) as GameObject;
                 Key_obj.GetComponent <KeyEvent>().GetObj(Cube);
             }
         }
         CrTime = 0f;
         i++;
     }
     if (i >= EndSign + 100)
     {
         HitEvent.fin_Combo();
         HitEvent.fin_Music();
     }
 }