//Check if player has enough resources for the defender private bool HasEnoughResources() { int currentResource = resourcePool.GetTotalResources(); return(currentResource >= defender.GetCost()); }