// Start is called before the first frame update void Start() { alexBolitas = GameObject.Find("Particle System").GetComponent <AlexScript>(); alexSonido = GameObject.Find("Audio Source").GetComponent <AlexSonido>(); alexCubito = GetComponent <Renderer>(); GameObject gameObject = new GameObject(); GameObject gameObject2 = new GameObject(); linea = gameObject.AddComponent <LineRenderer>(); linea2 = gameObject2.AddComponent <LineRenderer>(); linea.SetPosition(0, new Vector3(4, 0, -40)); linea2.SetPosition(0, new Vector3(-36, 0, 0)); linea.material = new Material(Shader.Find("Sprites/Default")); linea2.material = new Material(Shader.Find("Sprites/Default")); linea.SetWidth(1, 1); linea2.SetWidth(1, 1); }
// Start is called before the first frame update void Start() { alexBolitas = GameObject.Find("Particle System").GetComponent <AlexScript>(); alexSonido = GameObject.Find("Audio Source").GetComponent <AlexSonido>(); alexCubito = GetComponent <Renderer>(); }
// Start is called before the first frame update void Start() { alexSonido = GameObject.Find("Audio Source").GetComponent <AlexSonido>(); alexBolita = GetComponent <ParticleSystem>(); }