commit
e53b375410
@ -45,11 +45,6 @@ public class GameUIController : MonoBehaviour
|
|||||||
GameManager.Instance.OnClickConfirmButton();
|
GameManager.Instance.OnClickConfirmButton();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void OnClickRetryButton()
|
|
||||||
{
|
|
||||||
GameManager.Instance.RetryGame();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void OnClickExitButton()
|
public void OnClickExitButton()
|
||||||
{
|
{
|
||||||
// "Main" 씬으로 이동
|
// "Main" 씬으로 이동
|
||||||
@ -59,8 +54,11 @@ public class GameUIController : MonoBehaviour
|
|||||||
public void OnClickSurrenderButton()
|
public void OnClickSurrenderButton()
|
||||||
{
|
{
|
||||||
if (GameManager.Instance.CheckIsSinglePlay())
|
if (GameManager.Instance.CheckIsSinglePlay())
|
||||||
|
{
|
||||||
|
GameManager.Instance.panelManager.OpenConfirmPanel("항복 하시겠습니까?", () =>
|
||||||
{
|
{
|
||||||
GameManager.Instance.SurrenderSinglePlay();
|
GameManager.Instance.SurrenderSinglePlay();
|
||||||
|
}, true);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -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:
|
|
@ -323,6 +323,18 @@ PrefabInstance:
|
|||||||
serializedVersion: 3
|
serializedVersion: 3
|
||||||
m_TransformParent: {fileID: 3566405136616423668}
|
m_TransformParent: {fileID: 3566405136616423668}
|
||||||
m_Modifications:
|
m_Modifications:
|
||||||
|
- target: {fileID: 395529687980811166, guid: 68c08f4284cbef249b634faff8e01ea8, type: 3}
|
||||||
|
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Target
|
||||||
|
value:
|
||||||
|
objectReference: {fileID: 7505759082282251323}
|
||||||
|
- target: {fileID: 395529687980811166, guid: 68c08f4284cbef249b634faff8e01ea8, type: 3}
|
||||||
|
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_MethodName
|
||||||
|
value: OpenSettingsPanel
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 395529687980811166, guid: 68c08f4284cbef249b634faff8e01ea8, type: 3}
|
||||||
|
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_TargetAssemblyTypeName
|
||||||
|
value: InGameMenuPanelController, Assembly-CSharp
|
||||||
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 707007925660630557, guid: 68c08f4284cbef249b634faff8e01ea8, type: 3}
|
- target: {fileID: 707007925660630557, guid: 68c08f4284cbef249b634faff8e01ea8, type: 3}
|
||||||
propertyPath: m_Pivot.x
|
propertyPath: m_Pivot.x
|
||||||
value: 0.5
|
value: 0.5
|
||||||
@ -434,6 +446,18 @@ PrefabInstance:
|
|||||||
serializedVersion: 3
|
serializedVersion: 3
|
||||||
m_TransformParent: {fileID: 3566405136616423668}
|
m_TransformParent: {fileID: 3566405136616423668}
|
||||||
m_Modifications:
|
m_Modifications:
|
||||||
|
- target: {fileID: 6714588036628504957, guid: f3cb9e5a77dfb6b47b5f145a4ff28e6c, type: 3}
|
||||||
|
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Target
|
||||||
|
value:
|
||||||
|
objectReference: {fileID: 7505759082282251323}
|
||||||
|
- target: {fileID: 6714588036628504957, guid: f3cb9e5a77dfb6b47b5f145a4ff28e6c, type: 3}
|
||||||
|
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_MethodName
|
||||||
|
value: OnClickDrawRegisterButton
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 6714588036628504957, guid: f3cb9e5a77dfb6b47b5f145a4ff28e6c, type: 3}
|
||||||
|
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_TargetAssemblyTypeName
|
||||||
|
value: InGameMenuPanelController, Assembly-CSharp
|
||||||
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 6925205169732826551, guid: f3cb9e5a77dfb6b47b5f145a4ff28e6c, type: 3}
|
- target: {fileID: 6925205169732826551, guid: f3cb9e5a77dfb6b47b5f145a4ff28e6c, type: 3}
|
||||||
propertyPath: m_Name
|
propertyPath: m_Name
|
||||||
value: Draw Register Button
|
value: Draw Register Button
|
||||||
|
@ -397,7 +397,7 @@ MonoBehaviour:
|
|||||||
m_Calls:
|
m_Calls:
|
||||||
- m_Target: {fileID: 3933575647777291622}
|
- m_Target: {fileID: 3933575647777291622}
|
||||||
m_TargetAssemblyTypeName: GameUIController, Assembly-CSharp
|
m_TargetAssemblyTypeName: GameUIController, Assembly-CSharp
|
||||||
m_MethodName:
|
m_MethodName: OnClickRevengeRequestButton
|
||||||
m_Mode: 1
|
m_Mode: 1
|
||||||
m_Arguments:
|
m_Arguments:
|
||||||
m_ObjectArgument: {fileID: 0}
|
m_ObjectArgument: {fileID: 0}
|
||||||
|
@ -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()
|
||||||
{
|
{
|
||||||
|
@ -95,14 +95,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)
|
||||||
{
|
{
|
||||||
@ -128,6 +121,18 @@ public class GameManager : Singleton<GameManager>
|
|||||||
_gameUIController.SetButtonsIndicator(gameInProgress);
|
_gameUIController.SetButtonsIndicator(gameInProgress);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void OnClickDrawRegisterButton()
|
||||||
|
{
|
||||||
|
if (_gameUIController == null) return;
|
||||||
|
_gameUIController.OnClickDrawRequestButton();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void OpenSettingsPanel()
|
||||||
|
{
|
||||||
|
if (_gameUIController == null) return;
|
||||||
|
panelManager.OpenSettingsPanel();
|
||||||
|
}
|
||||||
|
|
||||||
public bool GetRequestDrawChance()
|
public bool GetRequestDrawChance()
|
||||||
{
|
{
|
||||||
if (_gameLogic == null) return false;
|
if (_gameLogic == null) return false;
|
||||||
|
@ -20,7 +20,12 @@ public class InGameMenuPanelController : PanelController
|
|||||||
|
|
||||||
public void OnClickDrawRegisterButton()
|
public void OnClickDrawRegisterButton()
|
||||||
{
|
{
|
||||||
// GameManager.Instance.lManager.
|
GameManager.Instance.OnClickDrawRegisterButton();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void OpenSettingsPanel()
|
||||||
|
{
|
||||||
|
GameManager.Instance.OpenSettingsPanel();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user