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>(); }
// 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>(); }
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>(); }
// Start is called before the first frame update void Start() { totorial = FindObjectOfType <Tutorial>(); start = FindObjectOfType <SpawnEnemigos>(); playerM = FindObjectOfType <PlayerMove>(); }