/*
     * bool BuildWall(GameObject currentSelectObject)
     * {
     *  Clickable clickable = currentSelectObject.GetComponent<Clickable>();
     *  if (clickable.CanBuildWall())
     *  {
     *      GameObject go = clickable.BuildWall();
     *      // library.buildings.AddWall(go.GetComponent<Wall>());
     *      LandWasChanged();
     *      currentButton.GetComponent<UIButton>().SetReload(2);
     *
     *
     *      // currentButton.GetComponent<UIButton>().SetReload(GameplayConstants.WallButtonReloadTime);
     *      return true;
     *  }
     *  else
     *      return false;
     *
     * }*/

    bool BuildSafeCupol(GameObject currentSelectObject)
    {
        Clickable clickable = currentSelectObject.GetComponent <Clickable>();

        if (clickable.CanBuildSafeCupol())
        {
            GameObject go = clickable.BuildSafeCupol();
            //library.buildings.AddSafeCupol(go.GetComponent<SafeCupol>());
            LandWasChanged();
            currentButton.GetComponent <UIButton>().SetReload(GameplayConstants.SafeCupolButtonReloadTime);
            return(true);
        }
        else
        {
            return(false);
        }
    }