// Start is called before the first frame update void Start() { //Cargamos el vaso de la carpeta Resources/Props glass = Resources.Load <GameObject>("Props/Glass"); //Inicializamos las listas para el OP objetosActivos = new List <GameObject>(); objetosDesactivados = new List <GameObject>(); //Creamos el objeto pool poolGlass = new GameObject(); poolGlass.name = "PoolGlass"; Instantiate(poolGlass, originPosition, Quaternion.identity); gameManager = GameObject.Find("GameManager").GetComponent <Game_manager>(); shots = gameManager.getListShot(); spawnGlass(); }