Esempio n. 1
0
    public void SpawnTower(int LV, Vector3 position)
    {
        GameObject tower = Instantiate(Resources.Load("Prefab/EnemyPrefabs/TowerLV" + LV)) as GameObject;

        mainGame.AddTower(tower);

        if (tower != null)
        {
            tower.transform.position = position;

            tower.transform.SetParent(GameObject.Find("Towers").transform);
        }
    }