Exemple #1
0
    public bool CanBuildAtPos(Vector3 pos)
    {
        Building referenceBuilding = referenceBuildings[currentBuildingIndex];
        bool     res = true;

        res = res && !IsPosOccupied(pos);
        res = res && !IsYTooHigh(pos);
        res = res && _economyManager.CanSpendGold(GetSelectedBuilding().cost);
        res = res && IsGroundConstructible(pos);
        return(res);
    }