void Start() { //Obtenemos el rb de el fantasma rb = GetComponent <Rigidbody2D>(); scriptFantasma = GetComponent <Fantasma_normal>(); sonido = GetComponent <SonidoFantasmas>(); }
void Start() { direccion = Vector2.zero; rb = GetComponent <Rigidbody2D>(); Reposiciona(); sonido = GetComponent <SonidoFantasmas>(); }
// Start is called before the first frame update void Start() { //Busca el gameController en la escena gc = GameObject.Find("GameController"); //Sonido es un script que lleva el gameobject que posee este script sonido = GetComponent <SonidoFantasmas>(); //Activa una funcion del Script "Sonido" sonido.SonidoMover(); }
// Start is called before the first frame update void Start() { sonido = GetComponent <SonidoFantasmas>(); }
void Start() { sonido = GetComponent <SonidoFantasmas>(); sonido.SonidoMover(); }
// Start is called before the first frame update void Start() { Reposiciona(); rb = GetComponent <Rigidbody2D>(); sonido = GetComponent <SonidoFantasmas>(); }