using UnityEngine; public class BossDebugController : MonoBehaviour { private BossController bossController; private void Awake() { // 同一オブジェクトにあるBossControllerを自動取得 bossController = GetComponent(); } 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(); } private void TriggerDebugStun() { if (bossController == null) return; Debug.Log("🛡️ 【キーボードデバッグ】強制的にパリィスタン(チャンスタイム)を発動します。"); bossController.ChangeState(); } }