Пример #1
0
 private void CheckKeyDown1()
 {
     if (Input.GetKeyDown(KeyCode.Alpha1))
     {
         if (!keyDown1)
         {
             towerManager.EnableTowerPurchaseMode(0);
             keyDown1 = true;
         }
     }
     else
     {
         keyDown1 = false;
     }
 }