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>();
 }
示例#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>();
 }