// Start is called before the first frame update void Start() { layermask = 1 << 8; //La capa 8 es la del player. shotPool = ShotPool.instance.transform; vision = GetComponent <VisionEnemigo>(); anim = GetComponent <Animator>(); }
// Start is called before the first frame update void Start() { spriteRenderer = GetComponent <SpriteRenderer>(); vision = GetComponent <VisionEnemigo>(); danyo = GetComponent <Danyo>(); rb = GetComponent <Rigidbody2D>(); coli = GetComponent <Collider2D>(); }
// Start is called before the first frame update void Start() { rb = GetComponent <Rigidbody2D>(); vision = GetComponent <VisionEnemigo>(); timer = 0f; }