private void SpawnDefender(Vector2 position) { //Check if we have enough stars if (_resourceSystem.GetStars() - _defenderPrefab.starsCost >= 0) { _resourceSystem.SpendStars(_defenderPrefab.starsCost); Defender defender = Instantiate(_defenderPrefab, position, Quaternion.identity); } }