void Awake() { nerbuzBrain = GameObject.FindGameObjectWithTag("Nerbuz").GetComponent <NerbuzAI>(); raizSound = GetComponentInChildren <AudioSource>(); minHigh = transform.position.y; maxHigh = transform.position.y + subida; cntTimeToDescende = timeToDescende; cntTimeNextAttack = 0.4f; }
private void Start() { anim = GetComponent <Animator>(); nerbuzBrain = GetComponentInParent <NerbuzAI>(); }