Пример #1
0
    //Check if player has enough resources for the defender
    private bool HasEnoughResources()
    {
        int currentResource = resourcePool.GetTotalResources();

        return(currentResource >= defender.GetCost());
    }