Ejemplo n.º 1
0
    public void Spawn(int LV)
    {
        GameObject unit = mainGame.AddUnit(LV);

        if (unit != null)
        {
            unit.transform.position = spawnPoint.transform.position;
            Camera.main.GetComponent <SpawnTower>().SpawnUnitcount++;
            unit.transform.SetParent(GameObject.Find("Players").transform);
        }
    }