bosuheya chouseimae
This commit is contained in:
44
Assets/_Scripts/Bossdebug.cs
Normal file
44
Assets/_Scripts/Bossdebug.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class BossDebugController : MonoBehaviour
|
||||
{
|
||||
private BossController bossController;
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
// 同一オブジェクトにあるBossControllerを自動取得
|
||||
bossController = GetComponent<BossController>();
|
||||
}
|
||||
|
||||
private void Update()
|
||||
{
|
||||
// ─── ★キーボードの『U(Ultimate)』キーを押したら強制発動 ───
|
||||
if (Input.GetKeyDown(KeyCode.U))
|
||||
{
|
||||
TriggerDebugUltimate();
|
||||
}
|
||||
|
||||
// ─── ついでにあると便利な機能:『S(Stun)』キーで即座にパリィスタン ───
|
||||
if (Input.GetKeyDown(KeyCode.S))
|
||||
{
|
||||
TriggerDebugStun();
|
||||
}
|
||||
}
|
||||
|
||||
private void TriggerDebugUltimate()
|
||||
{
|
||||
if (bossController == null) return;
|
||||
|
||||
Debug.Log("🛠️ 【キーボードデバッグ】強制的に必殺技(天井ジャンプ)を発動します。");
|
||||
bossController.PendingUltimate = true;
|
||||
bossController.ChangeState<SpiderJumpToCeilingState>();
|
||||
}
|
||||
|
||||
private void TriggerDebugStun()
|
||||
{
|
||||
if (bossController == null) return;
|
||||
|
||||
Debug.Log("🛡️ 【キーボードデバッグ】強制的にパリィスタン(チャンスタイム)を発動します。");
|
||||
bossController.ChangeState<SpiderStunState>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user