public void checkPress()
    {
        if (isPositioning)
        {
            hideButtons();

            string name = ElementPlacing.truncateNumbers(placedElem.name);

            if (ep.getObjectNum(name) < transform.GetComponent <InvOpen>().panel.GetComponent <AvailElemManager>().getCount(name))
            {
                ElementPlacing.currHold = ElementPlacing.truncateNumbers(placedElem.name);
                ElementPlacing.holding  = true;
            }

            if (!PlaySimulation.isSimActive)
            {
                if (placedElem.name.Contains("ramp"))
                {
                    BlockHover.showRampGrid();
                }
                else
                {
                    BlockHover.showGrid();
                }
            }
            //BlockHover.hideRampGrid ();
            ep.canPlace = true;
            placedElem  = null;
        }
    }
 public void RemoveElem()
 {
     if (placedElem.GetComponent <ElementProperties> ().removable)
     {
         ElementPlacing.currHold = ElementPlacing.truncateNumbers(placedElem.name);
         ElementPlacing.holding  = true;
         if (placedElem.name.Contains("ramp"))
         {
             BlockHover.showRampGrid();
             BlockHover.hideGrid();
         }
         else
         {
             BlockHover.showGrid();
             BlockHover.hideRampGrid();
         }
         ep.decNum(placedElem.name);
         Destroy(placedElem);
         placedElem  = null;
         ep.canPlace = true;
     }
 }