void Start() { agent = gameObject.GetComponent <NavMeshAgent>(); bulletDuration = PrefabBulletGota.GetComponent <BulletMove>().bulletDuration; anim = GetComponentInChildren <Animator>(); Tscript = GetComponent <TristezaScript>(); }
// 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>(); }