예제 #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>();
 }
예제 #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>();
 }
예제 #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>();
 }
예제 #4
0
 private void Start()
 {
     spawn = FindObjectOfType <SpawnEnemigos>();
 }
예제 #5
0
 // Start is called before the first frame update
 void Start()
 {
     totorial = FindObjectOfType <Tutorial>();
     start    = FindObjectOfType <SpawnEnemigos>();
     playerM  = FindObjectOfType <PlayerMove>();
 }