void Start()
 {
     //Obtenemos el rb de el fantasma
     rb             = GetComponent <Rigidbody2D>();
     scriptFantasma = GetComponent <Fantasma_normal>();
     sonido         = GetComponent <SonidoFantasmas>();
 }
예제 #2
0
 void Start()
 {
     direccion = Vector2.zero;
     rb        = GetComponent <Rigidbody2D>();
     Reposiciona();
     sonido = GetComponent <SonidoFantasmas>();
 }
예제 #3
0
 // 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();
 }
예제 #4
0
 // Start is called before the first frame update
 void Start()
 {
     sonido = GetComponent <SonidoFantasmas>();
 }
예제 #5
0
 void Start()
 {
     sonido = GetComponent <SonidoFantasmas>();
     sonido.SonidoMover();
 }
예제 #6
0
 // Start is called before the first frame update
 void Start()
 {
     Reposiciona();
     rb     = GetComponent <Rigidbody2D>();
     sonido = GetComponent <SonidoFantasmas>();
 }