private void Spawn() { DefenderSpawner dsp = FindObjectOfType <DefenderSpawner>(); Defender defender = Instantiate(this.defenderPrefab, currentSpawnPos, Quaternion.identity); dsp.setTileOccupation(currentSpawnPos, defender); }