Ejemplo n.º 1
0
    private void Spawn()
    {
        DefenderSpawner dsp = FindObjectOfType <DefenderSpawner>();

        Defender defender = Instantiate(this.defenderPrefab, currentSpawnPos, Quaternion.identity);

        dsp.setTileOccupation(currentSpawnPos, defender);
    }