예제 #1
0
 public override void Tick()
 {
     LookAtTarget();
     if (!_enemyWeapon.CanShoot())
     {
         return;
     }
     _enemyWeapon.Shoot(Mover.FacingRight);
     if (_hasAnimator)
     {
         _animator.SetTrigger(Shoot);
     }
 }