Пример #1
0
        public override void DoUpdate(PawnBehaviour machine)
        {
            if (machine.pawnAI.target == null)
            {
                machine.pawnAI.SetTarget(PlayerInputController.Instance.Pawn);
            }

            if (machine.LastEnterState + duration < Time.time)
            {
                machine.SetState(nextState);
            }
        }
Пример #2
0
 public override void EnterState(PawnBehaviour machine)
 {
     machine.pawn.Move(0f);
     machine.pawnMovement.paused = true;
     machine.pawn.Attack((machine.pawnAI.target.centerOfMass.position - machine.firePoint.position).normalized);
 }
Пример #3
0
 public override void EnterState(PawnBehaviour machine)
 {
     machine.pawnMovement.paused = false;
 }
Пример #4
0
 public override void OnAttackDone(PawnBehaviour machine)
 {
     machine.SetState(nextState);
 }