Exemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     agent          = GetComponent <NavMeshAgent>();
     playerPosition = GameObject.FindGameObjectWithTag("Player").transform;
     ToyAnim        = GetComponent <Animator>();
     playerGetDMG   = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerGetDMG>();
 }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     timer        = attckTime;
     playerGetDMG = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerGetDMG>();
     toyhealth    = GetComponent <ToyHealth>();
 }