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