Beispiel #1
0
 // Update is called once per frame
 void Update()
 {
     if (Input.GetKeyUp(KeyCode.W))
     {
         cam.CamMove(1);
     }
     if (Input.GetKeyUp(KeyCode.S))
     {
         cam.CamMove(-1);
     }
     if (Input.GetKeyUp(KeyCode.H))
     {
         HoldBlock();
     }
     if (!nowblock.GetComponent <CBlock>().GetBlocks_STATE())
     {
         TetrisArr.Add(nowblock);
         GB[0].GetComponent <CBlock>().BlockTeleport(UID.now_x, UID.now_y, -2);
         GB[0].GetComponent <CBlock>().SetBlocks_DISPLAY(false);
         GB[0].GetComponent <CBlock>().SetBlocks_STATE(true);
         nowblock = GB[0];
         GB.RemoveAt(0);
         SpawnBlock();
     }
 }