コード例 #1
0
 /// <summary>
 /// Takes user input to manipulate blocks.
 /// </summary>
 private void Update()
 {
     placeTimer -= Time.deltaTime;
     if (!PauseHandler.instance.paused && !GameManager.instance.isCountingDown)
     {
         SwitchBlock();
         if (InputUtil.GetLeftMouse())
         {
             PlaceBlock();
         }
         else if (InputUtil.GetRightMouseDown())
         {
             RemoveBlock();
         }
     }
 }