parili
This commit is contained in:
@@ -33,7 +33,7 @@ public class SpiderChaseState : SpiderStateBase
|
||||
if (distance >= boss.ChargeMinimumDistance && boss.ChargeCooldownTimer <= 0f)
|
||||
{
|
||||
boss.ChangeState<SpiderChargeState>();
|
||||
return;
|
||||
return;
|
||||
}
|
||||
|
||||
// 至近距離噛みつき判定
|
||||
@@ -56,11 +56,11 @@ public class SpiderBiteState : SpiderStateBase
|
||||
|
||||
public override void EnterState()
|
||||
{
|
||||
stateTimer = 1.5f;
|
||||
|
||||
boss.Agent.ResetPath();
|
||||
boss.Agent.isStopped = true;
|
||||
boss.Agent.velocity = Vector3.zero;
|
||||
stateTimer = 1.5f;
|
||||
|
||||
boss.Agent.ResetPath();
|
||||
boss.Agent.isStopped = true;
|
||||
boss.Agent.velocity = Vector3.zero;
|
||||
|
||||
boss.Anim.SetFloat("Speed", 0f);
|
||||
boss.Anim.SetTrigger("Attack_Bite");
|
||||
@@ -91,12 +91,12 @@ public class SpiderChargeState : SpiderStateBase
|
||||
|
||||
public override void EnterState()
|
||||
{
|
||||
roarTimer = boss.ChargeRoarDuration;
|
||||
roarTimer = boss.ChargeRoarDuration;
|
||||
chargeTimer = boss.ChargeDuration;
|
||||
isChargingPhase = false;
|
||||
|
||||
boss.Agent.isStopped = true;
|
||||
boss.Agent.velocity = Vector3.zero;
|
||||
boss.Agent.velocity = Vector3.zero;
|
||||
|
||||
boss.ResetChargeCooldown();
|
||||
boss.Anim.SetTrigger("Attack_Roar");
|
||||
@@ -143,9 +143,9 @@ public class SpiderChargeState : SpiderStateBase
|
||||
|
||||
Vector3 targetDestination = boss.transform.position + chargeDirection * 20f;
|
||||
|
||||
boss.Agent.isStopped = false;
|
||||
boss.Agent.speed = boss.ChargeSpeed;
|
||||
boss.Agent.acceleration = 120f;
|
||||
boss.Agent.isStopped = false;
|
||||
boss.Agent.speed = boss.ChargeSpeed;
|
||||
boss.Agent.acceleration = 120f;
|
||||
boss.Agent.SetDestination(targetDestination);
|
||||
|
||||
Debug.Log("🚀 蜘蛛ボス:ロックオン完了。全速力で突進ダッシュを発射!");
|
||||
@@ -174,7 +174,7 @@ public class SpiderJumpToCeilingState : SpiderStateBase
|
||||
|
||||
public override void EnterState()
|
||||
{
|
||||
roarTimer = boss.JumpRoarDuration;
|
||||
roarTimer = boss.JumpRoarDuration;
|
||||
jumpProgress = 0f;
|
||||
startPos = boss.transform.position;
|
||||
isJumpingPhase = false;
|
||||
@@ -193,7 +193,7 @@ public class SpiderJumpToCeilingState : SpiderStateBase
|
||||
if (roarTimer <= 0f)
|
||||
{
|
||||
isJumpingPhase = true;
|
||||
boss.Anim.SetTrigger("JumpUp");
|
||||
boss.Anim.SetTrigger("JumpUp");
|
||||
}
|
||||
return;
|
||||
}
|
||||
@@ -218,8 +218,8 @@ public class SpiderJumpToCeilingState : SpiderStateBase
|
||||
|
||||
public class SpiderCeilingAttackState : SpiderStateBase
|
||||
{
|
||||
private float stateDuration = 7.0f;
|
||||
private float shotInterval = 0.4f;
|
||||
private float stateDuration = 7.0f;
|
||||
private float shotInterval = 0.4f;
|
||||
private float timer = 0f;
|
||||
private float shotTimer = 0f;
|
||||
|
||||
@@ -230,7 +230,7 @@ public class SpiderCeilingAttackState : SpiderStateBase
|
||||
timer = stateDuration;
|
||||
shotTimer = 0f;
|
||||
boss.Anim.SetBool("IsOnCeiling", true);
|
||||
boss.PendingUltimate = false;
|
||||
boss.PendingUltimate = false;
|
||||
Debug.Log("🕸️ 蜘蛛ボス:天井から無数の糸を乱射中!");
|
||||
}
|
||||
|
||||
@@ -280,11 +280,12 @@ public class SpiderStunState : SpiderStateBase
|
||||
|
||||
public override void EnterState()
|
||||
{
|
||||
stunTimer = 4.0f;
|
||||
stunTimer = 4.0f;
|
||||
boss.Anim.SetTrigger("StunStart");
|
||||
boss.Anim.SetBool("IsStunned", true);
|
||||
if (boss.Agent.enabled) boss.Agent.isStopped = true;
|
||||
Debug.Log("🛡️ パリィ成功! チャンスタイム!");
|
||||
|
||||
}
|
||||
|
||||
public override void ExitState()
|
||||
|
||||
Reference in New Issue
Block a user