[Style] 기보데이터 테스트용 Enum삭제
This commit is contained in:
parent
d8e14e17c1
commit
1e7aaaef26
@ -1257,7 +1257,19 @@ MonoBehaviour:
|
||||
m_TargetGraphic: {fileID: 5553341337845712589}
|
||||
m_OnClick:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_Calls:
|
||||
- m_Target: {fileID: 1316706425349991338}
|
||||
m_TargetAssemblyTypeName: MainPanelControllerTestLIN, Assembly-CSharp
|
||||
m_MethodName: OnclickReplay
|
||||
m_Mode: 1
|
||||
m_Arguments:
|
||||
m_ObjectArgument: {fileID: 0}
|
||||
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
|
||||
m_IntArgument: 0
|
||||
m_FloatArgument: 0
|
||||
m_StringArgument:
|
||||
m_BoolArgument: 0
|
||||
m_CallState: 2
|
||||
--- !u!1 &4348816988605791720
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -1733,7 +1745,7 @@ GameObject:
|
||||
- component: {fileID: 6110152713294678410}
|
||||
- component: {fileID: 3427246911059574568}
|
||||
- component: {fileID: 5475593685932698206}
|
||||
- component: {fileID: 7488082087611091670}
|
||||
- component: {fileID: 1316706425349991338}
|
||||
m_Layer: 5
|
||||
m_Name: Main Panel Test LIN
|
||||
m_TagString: Untagged
|
||||
@ -1803,7 +1815,7 @@ MonoBehaviour:
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
m_PixelsPerUnitMultiplier: 1
|
||||
--- !u!114 &7488082087611091670
|
||||
--- !u!114 &1316706425349991338
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
@ -1812,12 +1824,13 @@ MonoBehaviour:
|
||||
m_GameObject: {fileID: 8564394481744056992}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: b4dc3fd9e59f47df80e344680d1b9803, type: 3}
|
||||
m_Script: {fileID: 11500000, guid: 67ce17de423b0644bb099f5272a48faf, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
nicknameText: {fileID: 6229663128658405980}
|
||||
ratingText: {fileID: 5975803210787517482}
|
||||
signOutButton: {fileID: 1336680714261373895}
|
||||
signOutButton: {fileID: 0}
|
||||
replayPanel: {fileID: 3652256375875260186, guid: 05029822800bdfc48895ad2aca318566, type: 3}
|
||||
--- !u!1 &9186617826613474881
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -1938,7 +1951,7 @@ MonoBehaviour:
|
||||
m_OnClick:
|
||||
m_PersistentCalls:
|
||||
m_Calls:
|
||||
- m_Target: {fileID: 7488082087611091670}
|
||||
- m_Target: {fileID: 0}
|
||||
m_TargetAssemblyTypeName: MainPanelController, Assembly-CSharp
|
||||
m_MethodName: OnSignOutClick
|
||||
m_Mode: 1
|
||||
|
18028
Assets/LIN/Scenes/GameCopyTestLIN.unity
Normal file
18028
Assets/LIN/Scenes/GameCopyTestLIN.unity
Normal file
File diff suppressed because it is too large
Load Diff
7
Assets/LIN/Scenes/GameCopyTestLIN.unity.meta
Normal file
7
Assets/LIN/Scenes/GameCopyTestLIN.unity.meta
Normal file
@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 88b1093ef5e1f3b4db329a67d13e8920
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -122,6 +122,191 @@ NavMeshSettings:
|
||||
debug:
|
||||
m_Flags: 0
|
||||
m_NavMeshData: {fileID: 0}
|
||||
--- !u!1001 &150251232
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
serializedVersion: 3
|
||||
m_TransformParent: {fileID: 759297939}
|
||||
m_Modifications:
|
||||
- target: {fileID: 180756268084732627, guid: 6f42a47846f21b044b1cda32a9516609, type: 3}
|
||||
propertyPath: m_AnchorMax.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 180756268084732627, guid: 6f42a47846f21b044b1cda32a9516609, type: 3}
|
||||
propertyPath: m_AnchorMin.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 180756268084732627, guid: 6f42a47846f21b044b1cda32a9516609, type: 3}
|
||||
propertyPath: m_AnchoredPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 180756268084732627, guid: 6f42a47846f21b044b1cda32a9516609, type: 3}
|
||||
propertyPath: m_AnchoredPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 837160915965981132, guid: 6f42a47846f21b044b1cda32a9516609, type: 3}
|
||||
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_MethodName
|
||||
value: OnclickRecordButton
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4282069284025755619, guid: 6f42a47846f21b044b1cda32a9516609, type: 3}
|
||||
propertyPath: m_SizeDelta.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4733773333797619672, guid: 6f42a47846f21b044b1cda32a9516609, type: 3}
|
||||
propertyPath: m_AnchorMax.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4733773333797619672, guid: 6f42a47846f21b044b1cda32a9516609, type: 3}
|
||||
propertyPath: m_AnchorMin.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4733773333797619672, guid: 6f42a47846f21b044b1cda32a9516609, type: 3}
|
||||
propertyPath: m_AnchoredPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4733773333797619672, guid: 6f42a47846f21b044b1cda32a9516609, type: 3}
|
||||
propertyPath: m_AnchoredPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5033979732381400892, guid: 6f42a47846f21b044b1cda32a9516609, type: 3}
|
||||
propertyPath: m_AnchorMax.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5033979732381400892, guid: 6f42a47846f21b044b1cda32a9516609, type: 3}
|
||||
propertyPath: m_AnchorMin.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5033979732381400892, guid: 6f42a47846f21b044b1cda32a9516609, type: 3}
|
||||
propertyPath: m_AnchoredPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5033979732381400892, guid: 6f42a47846f21b044b1cda32a9516609, type: 3}
|
||||
propertyPath: m_AnchoredPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6110152713294678410, guid: 6f42a47846f21b044b1cda32a9516609, type: 3}
|
||||
propertyPath: m_Pivot.x
|
||||
value: 0.5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6110152713294678410, guid: 6f42a47846f21b044b1cda32a9516609, type: 3}
|
||||
propertyPath: m_Pivot.y
|
||||
value: 0.5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6110152713294678410, guid: 6f42a47846f21b044b1cda32a9516609, type: 3}
|
||||
propertyPath: m_AnchorMax.x
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6110152713294678410, guid: 6f42a47846f21b044b1cda32a9516609, type: 3}
|
||||
propertyPath: m_AnchorMax.y
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6110152713294678410, guid: 6f42a47846f21b044b1cda32a9516609, type: 3}
|
||||
propertyPath: m_AnchorMin.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6110152713294678410, guid: 6f42a47846f21b044b1cda32a9516609, type: 3}
|
||||
propertyPath: m_AnchorMin.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6110152713294678410, guid: 6f42a47846f21b044b1cda32a9516609, type: 3}
|
||||
propertyPath: m_SizeDelta.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6110152713294678410, guid: 6f42a47846f21b044b1cda32a9516609, type: 3}
|
||||
propertyPath: m_SizeDelta.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6110152713294678410, guid: 6f42a47846f21b044b1cda32a9516609, type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6110152713294678410, guid: 6f42a47846f21b044b1cda32a9516609, type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6110152713294678410, guid: 6f42a47846f21b044b1cda32a9516609, type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6110152713294678410, guid: 6f42a47846f21b044b1cda32a9516609, type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6110152713294678410, guid: 6f42a47846f21b044b1cda32a9516609, type: 3}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6110152713294678410, guid: 6f42a47846f21b044b1cda32a9516609, type: 3}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6110152713294678410, guid: 6f42a47846f21b044b1cda32a9516609, type: 3}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6110152713294678410, guid: 6f42a47846f21b044b1cda32a9516609, type: 3}
|
||||
propertyPath: m_AnchoredPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6110152713294678410, guid: 6f42a47846f21b044b1cda32a9516609, type: 3}
|
||||
propertyPath: m_AnchoredPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6110152713294678410, guid: 6f42a47846f21b044b1cda32a9516609, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6110152713294678410, guid: 6f42a47846f21b044b1cda32a9516609, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6110152713294678410, guid: 6f42a47846f21b044b1cda32a9516609, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8446481687955831510, guid: 6f42a47846f21b044b1cda32a9516609, type: 3}
|
||||
propertyPath: m_AnchorMax.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8446481687955831510, guid: 6f42a47846f21b044b1cda32a9516609, type: 3}
|
||||
propertyPath: m_AnchorMin.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8446481687955831510, guid: 6f42a47846f21b044b1cda32a9516609, type: 3}
|
||||
propertyPath: m_AnchoredPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8446481687955831510, guid: 6f42a47846f21b044b1cda32a9516609, type: 3}
|
||||
propertyPath: m_AnchoredPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8564394481744056992, guid: 6f42a47846f21b044b1cda32a9516609, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: Main Panel Test LIN
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8768541925252566370, guid: 6f42a47846f21b044b1cda32a9516609, type: 3}
|
||||
propertyPath: m_AnchorMax.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8768541925252566370, guid: 6f42a47846f21b044b1cda32a9516609, type: 3}
|
||||
propertyPath: m_AnchorMin.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8768541925252566370, guid: 6f42a47846f21b044b1cda32a9516609, type: 3}
|
||||
propertyPath: m_AnchoredPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8768541925252566370, guid: 6f42a47846f21b044b1cda32a9516609, type: 3}
|
||||
propertyPath: m_AnchoredPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_RemovedGameObjects: []
|
||||
m_AddedGameObjects: []
|
||||
m_AddedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 6f42a47846f21b044b1cda32a9516609, type: 3}
|
||||
--- !u!1 &519420028
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -307,7 +492,8 @@ RectTransform:
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 0, y: 0, z: 0}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Children:
|
||||
- {fileID: 972014384}
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
@ -315,6 +501,11 @@ RectTransform:
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0, y: 0}
|
||||
--- !u!224 &972014384 stripped
|
||||
RectTransform:
|
||||
m_CorrespondingSourceObject: {fileID: 6110152713294678410, guid: 6f42a47846f21b044b1cda32a9516609, type: 3}
|
||||
m_PrefabInstance: {fileID: 150251232}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1 &1017982169
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -33,8 +33,7 @@ public class GameManagerTestLIN : Singleton<GameManagerTestLIN>
|
||||
|
||||
private void Start()
|
||||
{
|
||||
// 자동 로그인
|
||||
TryAutoSignin();
|
||||
|
||||
|
||||
//게임 씬에서 확인하기 위한 임시 코드
|
||||
_stoneController = GameObject.FindObjectOfType<StoneController>();
|
||||
@ -87,6 +86,7 @@ public class GameManagerTestLIN : Singleton<GameManagerTestLIN>
|
||||
public void OnClickConfirmButton()
|
||||
{
|
||||
_gameLogic.SetNewBoardValue(_gameLogic.currentTurn, _gameLogic.selectedRow,_gameLogic.selectedCol);
|
||||
|
||||
}
|
||||
|
||||
private void ChangeToGameScene(Enums.GameType gameType)
|
||||
|
40
Assets/LIN/Scripts/MainPanelControllerTestLIN.cs
Normal file
40
Assets/LIN/Scripts/MainPanelControllerTestLIN.cs
Normal file
@ -0,0 +1,40 @@
|
||||
using System;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
public class MainPanelControllerTestLIN : MonoBehaviour
|
||||
{
|
||||
[SerializeField] private TextMeshProUGUI nicknameText;
|
||||
[SerializeField] private TextMeshProUGUI ratingText;
|
||||
[SerializeField] private Button signOutButton;
|
||||
[SerializeField] private GameObject replayPanel;
|
||||
|
||||
public void UpdateUserInfo()
|
||||
{
|
||||
if (UserManager.Instance == null) return;
|
||||
|
||||
nicknameText.text = UserManager.Instance.Nickname;
|
||||
ratingText.text = $"{UserManager.Instance.Rating}급";
|
||||
}
|
||||
|
||||
public void OnSignOutClick()
|
||||
{
|
||||
NetworkManager.Instance.SignOut(() =>
|
||||
{
|
||||
Debug.Log("로그아웃 성공");
|
||||
|
||||
// 로그인 화면
|
||||
GameManager.Instance.OpenSigninPanel();
|
||||
}, () =>
|
||||
{
|
||||
Debug.Log("로그아웃 실패");
|
||||
// OpenConfirmPanel("로그아웃 되었습니다.", () => { });
|
||||
});
|
||||
}
|
||||
|
||||
public void OnclickRecordButton()
|
||||
{
|
||||
Instantiate(replayPanel, GetComponent<Transform>());
|
||||
}
|
||||
}
|
3
Assets/LIN/Scripts/MainPanelControllerTestLIN.cs.meta
Normal file
3
Assets/LIN/Scripts/MainPanelControllerTestLIN.cs.meta
Normal file
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 67ce17de423b0644bb099f5272a48faf
|
||||
timeCreated: 1741848912
|
@ -13,7 +13,7 @@ public class ReplayCell : MonoBehaviour
|
||||
[SerializeField] private TMP_Text recordDateText;
|
||||
|
||||
private ReplayRecord _storedReplayRecord;
|
||||
private PlayerType _myPlayerType;
|
||||
private Enums.PlayerType _myPlayerType;
|
||||
private string _opponentNickname;
|
||||
|
||||
|
||||
@ -32,7 +32,7 @@ public class ReplayCell : MonoBehaviour
|
||||
}
|
||||
}
|
||||
|
||||
public void SetMyPlayerType(PlayerType myPlayerType)
|
||||
public void SetMyPlayerType(Enums.PlayerType myPlayerType)
|
||||
{
|
||||
_myPlayerType = myPlayerType;
|
||||
}
|
||||
|
@ -5,12 +5,6 @@ using System.IO;
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
|
||||
|
||||
//TODO: 테스트용, 게임로직과 머지시 삭제
|
||||
public enum PlayerType{None, PlayerA, PlayerB}
|
||||
public enum StoneType{None, White, Black}
|
||||
|
||||
|
||||
[Serializable]
|
||||
public class ReplayRecord
|
||||
{
|
||||
@ -53,7 +47,7 @@ public class ReplayManager : Singleton<ReplayManager>
|
||||
///<summary>
|
||||
/// 게임 씬에서 착수를 할 때마다 호출해서 기록
|
||||
/// </summary>
|
||||
public void RecordStonePlaced(StoneType stoneType,int row, int col)
|
||||
public void RecordStonePlaced(Enums.StoneType stoneType,int row, int col)
|
||||
{
|
||||
string stoneColor = stoneType.ToString();
|
||||
_recordingReplayData.moves.Add(new Move(stoneColor, row, col));
|
||||
@ -63,7 +57,7 @@ public class ReplayManager : Singleton<ReplayManager>
|
||||
/// <summary>
|
||||
/// 게임 종료 후 호출하여 리플레이 데이터를 저장합니다.
|
||||
/// </summary>
|
||||
public void SaveReplayData(PlayerType winnerPlayerType)
|
||||
public void SaveReplayData(Enums.PlayerType winnerPlayerType)
|
||||
{
|
||||
try
|
||||
{
|
||||
@ -139,4 +133,18 @@ public class ReplayManager : Singleton<ReplayManager>
|
||||
protected override void OnSceneLoaded(Scene scene, LoadSceneMode mode)
|
||||
{
|
||||
}
|
||||
|
||||
#region for tests
|
||||
|
||||
public void OnClickSaveButton(string winnerPlayerType = "PlayerA")
|
||||
{
|
||||
if(winnerPlayerType == Enums.PlayerType.PlayerA.ToString())
|
||||
SaveReplayData(Enums.PlayerType.PlayerA);
|
||||
else
|
||||
SaveReplayData(Enums.PlayerType.PlayerB);
|
||||
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
}
|
||||
|
@ -33,8 +33,8 @@ public class ReplayPanelController : MonoBehaviour
|
||||
var replayCellButtonObject = Instantiate(replayCellPrefab, contentTransform);
|
||||
ReplayCell replayCell = replayCellButtonObject.GetComponent<ReplayCell>();
|
||||
|
||||
PlayerType myPlayerType = _myNickname.Equals(replayRecord.playerA) ? PlayerType.PlayerA : PlayerType.PlayerB;
|
||||
string opponentNickname = myPlayerType==PlayerType.PlayerA ? replayRecord.playerB : replayRecord.playerA;
|
||||
Enums.PlayerType myPlayerType = _myNickname.Equals(replayRecord.playerA) ? Enums.PlayerType.PlayerA : Enums.PlayerType.PlayerB;
|
||||
string opponentNickname = myPlayerType==Enums.PlayerType.PlayerA ? replayRecord.playerB : replayRecord.playerA;
|
||||
|
||||
replayCell.SetMyPlayerType(myPlayerType);
|
||||
replayCell.SetWinImage(myPlayerType.ToString().Equals(replayRecord.winnerPlayerType));
|
||||
|
Loading…
x
Reference in New Issue
Block a user