// Move the player position on the board to the south -Z public void MovePlayerSouth() { if (playerCellId < 20) { OneCellClass current = GetCurrentCell(); current.OnPlayerExit(); playerCellId += 5; current = GetCurrentCell(); current.OnPlayerEnter(); // Update cells models to display UpdateCellsModels(); } }
// Move the player position on the board to the west -X public void MovePlayerWest() { if (playerCellId % 5 == 0) { return; } OneCellClass current = GetCurrentCell(); current.OnPlayerExit(); playerCellId--; current = GetCurrentCell(); current.OnPlayerEnter(); // Update cells models to display UpdateCellsModels(); }