DO-33 [Feat] 돌 지우는 함수 추가
RemoveStone추가
This commit is contained in:
parent
195f1b7741
commit
29cbe683ac
@ -194,7 +194,7 @@ public class GameLogic : MonoBehaviour
|
||||
{
|
||||
if (_board[row, col] != Enums.PlayerType.None) return;
|
||||
|
||||
if (stoneController.GetStoneState(row, col) != Enums.StoneState.None) return;
|
||||
if (stoneController.GetStoneState(row, col) != Enums.StoneState.None && currentTurn == Enums.PlayerType.PlayerA) return;
|
||||
//첫수 및 중복 확인
|
||||
if ((selectedRow != row || selectedCol != col) && (selectedRow != -1 && selectedCol != -1))
|
||||
{
|
||||
@ -226,6 +226,13 @@ public class GameLogic : MonoBehaviour
|
||||
}
|
||||
}
|
||||
|
||||
//돌 지우는 함수
|
||||
public void RemoveStone(int row, int col)
|
||||
{
|
||||
stoneController.SetStoneType(Enums.StoneType.None, row, col);
|
||||
stoneController.SetStoneState(Enums.StoneState.None, row, col);
|
||||
}
|
||||
|
||||
//마지막 좌표와 선택 좌표 세팅
|
||||
private void LastNSelectedSetting(int row, int col)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user