Exemple #1
0
 private void AttackBehaviour()
 {
     if (timeSinceLastAttack > attackCooldownTime)
     {
         if (attackQueued || true)
         {
             transform.LookAt(target.transform);
             animationController.Attack();
             timeSinceLastAttack = 0;
             attackQueued        = false;
         }
     }
 }
Exemple #2
0
        protected override BStatus Update()
        {
            _controller.Attack();

            return(BStatus.BH_SUCCESS);
        }