private void GiveResources() { if (resourceTeam != null) { resourceTeam.Add(creditsToGive, oilToGive, team.TeamName); } }
/// <summary> /// Stops rendering and returns cost. /// </summary> private void BuildingCancel() { var stats = selectedHologram.BuildingCreate.BuildingStats; ResourceTeam.Add(stats.costMoney, stats.costOil, team.TeamName); BuildingStop(); }