void Awake() { spriteRenderer = GetComponent <SpriteRenderer>(); blinkAnimation = GetComponent <BinkAnimation>(); rb = GetComponent <Rigidbody2D>(); pool = GetComponentInParent <ObjectPool>(); col = GetComponent <BoxCollider2D>(); }
void Awake() { playerTransform = Player.Instance.transform; weapon = GetComponent <EnemyWeapon>(); blinkAnimation = GetComponent <BinkAnimation>(); }