Exemplo n.º 1
0
    bool BuildHealing(GameObject currentSelectObject)
    {
        Clickable clickable = currentSelectObject.GetComponent <Clickable>();

        if (clickable.CanBuildHealing())
        {
            GameObject go = clickable.BuildHealing();
            currentButton.GetComponent <UIButton>().SetReload(GameplayConstants.HealingButtonReloadTime);

            //library.buildings.AddSafeCupol(go.GetComponent<SafeCupol>());

            // currentButton.GetComponent<UIButton>().SetReload(GameplayConstants.WallButtonReloadTime);
            return(true);
        }
        else
        {
            return(false);
        }
    }