void Awake() { tr = GetComponent <Transform>(); rb = GetComponent <Rigidbody>(); trCam = GameObject.FindWithTag("Tripe").GetComponent <Transform> (); sistemaDeSom = GameObject.FindWithTag("MainCamera").GetComponent <SistemaSom>(); }
void Awake() { agenteNM = GetComponent <NavMeshAgent>(); vida = GetComponent <Vida>(); vidaJogador = GameObject.FindWithTag("Player").GetComponent <Vida>(); sistemaDeSom = GameObject.FindWithTag("MainCamera").GetComponent <SistemaSom>(); }
void Awake() { tr = GetComponent <Transform>(); rb = GetComponent <Rigidbody>(); trCam = GameObject.FindWithTag("Tripe").GetComponent <Transform>(); sistemaDeSom = GameObject.FindWithTag("MainCamera").GetComponent <SistemaSom>(); colisorMartelo.enabled = false; }
void Awake() { sistemaDeSom = GameObject.FindWithTag("MainCamera").GetComponent <SistemaSom>(); }