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