DO-84 [fix] Retry 코드 및 LYC 폴더 제거
This commit is contained in:
parent
9aa10f3dd5
commit
ab2f5c9d05
@ -38,11 +38,6 @@ public class GameUIController : MonoBehaviour
|
|||||||
GameManager.Instance.OnClickConfirmButton();
|
GameManager.Instance.OnClickConfirmButton();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void OnClickRetryButton()
|
|
||||||
{
|
|
||||||
GameManager.Instance.RetryGame();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void OnClickSurrenderButton()
|
public void OnClickSurrenderButton()
|
||||||
{
|
{
|
||||||
if (GameManager.Instance.CheckIsSinglePlay())
|
if (GameManager.Instance.CheckIsSinglePlay())
|
||||||
|
@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 2c121ebd683637b4a9f10f3360db1bd5
|
|
||||||
folderAsset: yes
|
|
||||||
DefaultImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
54563
Assets/LYC/GameLYC.unity
54563
Assets/LYC/GameLYC.unity
File diff suppressed because it is too large
Load Diff
@ -1,7 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: ded4103a87c2de84db5f4ce2675227ef
|
|
||||||
DefaultImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@ -517,9 +517,6 @@ public partial class GameLogic : IDisposable
|
|||||||
|
|
||||||
public Enums.PlayerType[,] GetBoard() => _board;
|
public Enums.PlayerType[,] GetBoard() => _board;
|
||||||
|
|
||||||
// 보드 초기화
|
|
||||||
public void ResetBoard() => Array.Clear(_board, 0, _board.Length);
|
|
||||||
|
|
||||||
// 상대가 매칭되지 않을 경우 AI로 전환하는 함수
|
// 상대가 매칭되지 않을 경우 AI로 전환하는 함수
|
||||||
private void SwitchToSinglePlayer()
|
private void SwitchToSinglePlayer()
|
||||||
{
|
{
|
||||||
|
@ -93,14 +93,7 @@ public class GameManager : Singleton<GameManager>
|
|||||||
}
|
}
|
||||||
InitPanels();
|
InitPanels();
|
||||||
}
|
}
|
||||||
//임시 재시작 재대결
|
|
||||||
public void RetryGame()
|
|
||||||
{
|
|
||||||
if (_gameLogic == null) return;
|
|
||||||
_gameLogic.ResetBoard();
|
|
||||||
_stoneController.InitStones();
|
|
||||||
_gameLogic.SetState(_gameLogic.FirstPlayerState);
|
|
||||||
}
|
|
||||||
//유저 이름 Game UI에 초기화
|
//유저 이름 Game UI에 초기화
|
||||||
public void InitPlayersName(string playerNameA, string playerNameB)
|
public void InitPlayersName(string playerNameA, string playerNameB)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user