Implement debug switching

This commit is contained in:
2025-12-18 01:00:17 +08:00
parent a991b5a0ee
commit 871dd5014b
5 changed files with 73 additions and 3 deletions

View File

@@ -25,10 +25,15 @@ namespace Services
{
this.gameBoardService.Setup();
this.inputService.OnSwapRequested += HandleSwapRequest;
this.inputService.OnSwitchRequested += HandleSwitchRequest;
}
private void HandleSwapRequest(Vector2Int from, Vector2Int to) {
this.gameBoardService.TrySwap(from, to);
}
private void HandleSwitchRequest(Vector2Int position) {
this.gameBoardService.TrySwitch(position);
}
}
}