예제 #1
0
 void Start()
 {
     agent          = gameObject.GetComponent <NavMeshAgent>();
     bulletDuration = PrefabBulletGota.GetComponent <BulletMove>().bulletDuration;
     anim           = GetComponentInChildren <Animator>();
     Tscript        = GetComponent <TristezaScript>();
 }
예제 #2
0
 // Start is called before the first frame update
 void Start()
 {
     agent   = gameObject.GetComponent <NavMeshAgent>();
     t_rb    = gameObject.GetComponent <Rigidbody>();
     t_col   = gameObject.GetComponent <Collider>();
     anim    = gameObject.GetComponentInChildren <Animator>();
     Tscript = GetComponent <TristezaScript>();
 }