Beispiel #1
0
 private void Start()
 {
     playerS     = FindObjectOfType <PlayerMove>();
     player      = GameObject.FindGameObjectWithTag("Player").transform;
     anim        = GetComponent <Animator>();
     nav         = GetComponent <NavMeshAgent>();
     resetEnemys = FindObjectOfType <Respawn>();
     Ndis        = GameObject.Find("Ndistancia").GetComponent <Text>();
     colliderS   = GetComponent <SphereCollider>();
     numEnemigos = FindObjectOfType <SpawnEnemigos>();
 }
Beispiel #2
0
 // Start is called before the first frame update
 void Start()
 {
     miniS       = FindObjectOfType <MiniSpider>();
     level2Start = FindObjectOfType <DetectorA2>();
     nucleo      = FindObjectOfType <Nucleo>();
     RespawnPos  = puntRespawn.transform.position;
     playerMove  = FindObjectOfType <PlayerMove>();
     healthBar   = FindObjectOfType <HealthBar>();
     actOleadas  = FindObjectOfType <ActivarOleadas>();
     spawnEnemy  = FindObjectOfType <SpawnEnemigos>();
     timer       = FindObjectOfType <TimerNucleo>();
 }
Beispiel #3
0
 private void Start()
 {
     numEnemigos = FindObjectOfType <SpawnEnemigos>();
     playerS     = FindObjectOfType <PlayerMove>();
     player      = GameObject.FindGameObjectWithTag("Player").transform;
     anim        = GetComponent <Animator>();
     colliderS   = GetComponent <SphereCollider>();
     nav         = GetComponent <NavMeshAgent>();
     healthBar   = FindObjectOfType <HealthBar>();
     resetEnemys = FindObjectOfType <Respawn>();
     Nmele       = GameObject.Find("Nmele").GetComponent <Text>();
     aguaM       = FindObjectOfType <AguaMagica>();
 }
 private void Start()
 {
     spawn = FindObjectOfType <SpawnEnemigos>();
 }
Beispiel #5
0
 // Start is called before the first frame update
 void Start()
 {
     totorial = FindObjectOfType <Tutorial>();
     start    = FindObjectOfType <SpawnEnemigos>();
     playerM  = FindObjectOfType <PlayerMove>();
 }