Implement debug switching
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user