public override void EnterState(AIController controller)
 {
     // no pathing
     controller.InterruptPath();
     controller.EnablePathfinding(false);
     enteredShootTime = Time.time;
 }
Пример #2
0
    public override void EnterState(AIController controller)
    {
        // Charge directly at player, no pathing
        controller.InterruptPath();
        controller.EnablePathfinding(false);

        ((ChargeBossController)controller).BeginChargeAttack();
    }
    public override void ExitState(AIController controller)
    {
        controller.EnablePathfinding(true);

        ChargeBossController bossController = (ChargeBossController)controller;
        if(bossController.isWeakend) {
            bossController.CloseWeakSpot();
        }
    }
    public override void EnterState(AIController controller)
    {
        // no pathing
        controller.InterruptPath();
        controller.EnablePathfinding(false);
        startedTelegraph = Time.time;

        ChargeBossController bossController = (ChargeBossController)controller;
        bossController.BeginTelegraphAttack();
    }
Пример #5
0
 public override void ExitState(AIController controller)
 {
     controller.EnablePathfinding(true);
     ((ChargeBossController)controller).EndChargeAttack();
 }
 public override void ExitState(AIController controller)
 {
     controller.EnablePathfinding(true);
     controller.headTransform.localPosition = Vector3.zero;
 }