// Start is called before the first frame update
 void Start()
 {
     agent  = GetComponent <NavMeshAgent>();
     target = GameObject.FindGameObjectWithTag("player").transform;
     dano   = GetComponent <TomaDano>();
     snare  = GetComponent <Snared>();
 }
Esempio n. 2
0
 // Start is called before the first frame update
 void Start()
 {
     snare = GetComponent <Snared>();
     dano  = GetComponent <TomaDano>();
 }