Example #1
0
 private void CheckHit()
 {
     if (selectedFence.fenceModel.transform.localPosition.y >= 0.1f)
     {
         HammerDown();
         
         FenceDown();
             
         HammerUp();
             
     }
     else
     {
         selectedFence.DisableFence();
         fenceList.Remove(selectedFence);
         selectedFence = null;
         if (!selectedFence)
         {
             _hammerReach = false;
         }
     }
 }