新增軌跡記錄器與匯出至unity內(滑鼠軌跡本身將改為raw input)

This commit is contained in:
Sahik committed 2026-10-23 01:15:01 +08:00
1 parent 9e8b520bec
commit 14140797ba
30 files changed
+2299 -22

No files matched your search

+4
View File
@@ -26,6 +26,9 @@ public class BotSpawner : MonoBehaviour
// 目前活著的機器人,倒下到重生之間是 null (給方位指示等 UI 用)
public BotHealth CurrentBot { get; private set; }
// 新的一隻生成時通知 (記錄器用來開始一回合)
public event System.Action<BotHealth> BotSpawned;
void Start()
{
Spawn();
@@ -44,6 +47,7 @@ public class BotSpawner : MonoBehaviour
{
health.Died += OnBotDied;
CurrentBot = health;
BotSpawned?.Invoke(health);
}
}