private void AttemptToPlaceDefenderAt(Vector2 gridPos) { var Moneysys = FindObjectOfType <Moneysys>(); int defenderCost = defender.GetDefCost(); if (Moneysys.HaveMoney(defenderCost)) { DeployDef(gridPos); Moneysys.SpendMoney(defenderCost); } }