Пример #1
0
 void Awake()
 {
     tr           = GetComponent <Transform>();
     rb           = GetComponent <Rigidbody>();
     trCam        = GameObject.FindWithTag("Tripe").GetComponent <Transform> ();
     sistemaDeSom = GameObject.FindWithTag("MainCamera").GetComponent <SistemaSom>();
 }
Пример #2
0
 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;
    }
Пример #4
0
 void Awake()
 {
     sistemaDeSom = GameObject.FindWithTag("MainCamera").GetComponent <SistemaSom>();
 }