protected override void Start() { base.Start(); _startPos = transform.position; _playerVelocity = Vector3.zero; _lastPlayerPos = _playerTrans.position; _aAnimController = GetComponent <ArcherAnimController>(); }
private void OnEnable() { if (tag == "Enemy") { _archerAnimController = GetComponent <ArcherAnimController>(); } else { _animController = GetComponentInParent <PlayerAnimationController>(); } }