[Feat] 무승부 적용 완료
폰트와 UI 이미지 일부 수정
This commit is contained in:
parent
de34c2ebbc
commit
d2deaa195b
@ -418,6 +418,81 @@ MonoBehaviour:
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
m_PixelsPerUnitMultiplier: 1
|
||||
--- !u!1 &6725069296890934698
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 4035312119661202039}
|
||||
- component: {fileID: 8616790052716066886}
|
||||
- component: {fileID: 2590408022327786383}
|
||||
m_Layer: 5
|
||||
m_Name: DrawImage
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &4035312119661202039
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6725069296890934698}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 782808433606758938}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 100, y: 100}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &8616790052716066886
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6725069296890934698}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &2590408022327786383
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6725069296890934698}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_Sprite: {fileID: 0}
|
||||
m_Type: 0
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
m_PixelsPerUnitMultiplier: 1
|
||||
--- !u!1 &6889607079215043674
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -447,6 +522,7 @@ RectTransform:
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 4035312119661202039}
|
||||
- {fileID: 6243070150297500116}
|
||||
- {fileID: 379352358508670316}
|
||||
m_Father: {fileID: 423109112585897887}
|
||||
@ -614,5 +690,6 @@ MonoBehaviour:
|
||||
m_EditorClassIdentifier:
|
||||
winImage: {fileID: 5279064539717668063}
|
||||
loseImage: {fileID: 7205159236927224312}
|
||||
drawImage: {fileID: 2590408022327786383}
|
||||
playerNicknameText: {fileID: 1459786160726782322}
|
||||
recordDateText: {fileID: 857776554898951878}
|
||||
|
@ -1713,7 +1713,7 @@ MonoBehaviour:
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_text: "\uD638\uB7AD\uC774"
|
||||
m_text: "\uD14C\uC2A4\uD2B8\uC0BC\uBC88"
|
||||
m_isRightToLeft: 0
|
||||
m_fontAsset: {fileID: 11400000, guid: 85a19688db53c77469fc4406b01045da, type: 2}
|
||||
m_sharedMaterial: {fileID: -2477908578676791210, guid: 85a19688db53c77469fc4406b01045da, type: 2}
|
||||
|
@ -18363,8 +18363,8 @@ MonoBehaviour:
|
||||
m_Calls: []
|
||||
m_text: Player B
|
||||
m_isRightToLeft: 0
|
||||
m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
|
||||
m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
|
||||
m_fontAsset: {fileID: 11400000, guid: 85a19688db53c77469fc4406b01045da, type: 2}
|
||||
m_sharedMaterial: {fileID: -2477908578676791210, guid: 85a19688db53c77469fc4406b01045da, type: 2}
|
||||
m_fontSharedMaterials: []
|
||||
m_fontMaterial: {fileID: 0}
|
||||
m_fontMaterials: []
|
||||
@ -18762,8 +18762,8 @@ MonoBehaviour:
|
||||
m_Calls: []
|
||||
m_text: Player A
|
||||
m_isRightToLeft: 0
|
||||
m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
|
||||
m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
|
||||
m_fontAsset: {fileID: 11400000, guid: 85a19688db53c77469fc4406b01045da, type: 2}
|
||||
m_sharedMaterial: {fileID: -2477908578676791210, guid: 85a19688db53c77469fc4406b01045da, type: 2}
|
||||
m_fontSharedMaterials: []
|
||||
m_fontMaterial: {fileID: 0}
|
||||
m_fontMaterials: []
|
||||
|
@ -33,7 +33,7 @@ public class ReplayCell : MonoBehaviour
|
||||
winImage.gameObject.SetActive(false);
|
||||
}
|
||||
}
|
||||
|
||||
//TODO: 무승부 이미지 제작해서 에디터에 추가해주세요
|
||||
public void SetWinImage(Enums.GameResult gameResult)
|
||||
{
|
||||
switch(gameResult)
|
||||
|
@ -11,10 +11,10 @@ public class ReplayRecord
|
||||
public string gameDate;
|
||||
public string playerA;
|
||||
public string playerB;
|
||||
public List<Move> moves = new List<Move>();
|
||||
public string gameResult; //무승부를 반영하기위해 승자가 아닌 게임 결과를 저장.
|
||||
public Enums.GameResult gameResult;
|
||||
public int playerAPofileImageIndex;
|
||||
public int playerBPofileImageIndex;
|
||||
public List<Move> moves = new List<Move>();
|
||||
}
|
||||
[Serializable]
|
||||
public class Move
|
||||
@ -120,7 +120,7 @@ public class ReplayManager : Singleton<ReplayManager>
|
||||
{
|
||||
string time = DateTime.Now.ToString(("yyyy-MM-dd HH_mm_ss"));
|
||||
_recordingReplayData.gameDate = time;
|
||||
_recordingReplayData.gameResult = gameResultType.ToString();
|
||||
_recordingReplayData.gameResult = gameResultType;
|
||||
|
||||
// Json데이터로 변환해서 저장
|
||||
string json = JsonUtility.ToJson(_recordingReplayData, true);
|
||||
|
@ -25,9 +25,9 @@ public class ReplayPanelItemsController : ScrollPanelController
|
||||
|
||||
// ReplayManager에서 가져온 기보 데이터들을 패널 셀에 초기화
|
||||
records = ReplayManager.Instance.LoadReplayDatas();
|
||||
|
||||
foreach (var replayRecord in records)
|
||||
{
|
||||
Debug.Log($"{replayRecord.gameDate}의 결과는 {replayRecord.gameResult}");
|
||||
var replayCellButtonObject = Instantiate(scrollItemPrefab, content.transform);
|
||||
ReplayCell replayCell = replayCellButtonObject.GetComponent<ReplayCell>();
|
||||
|
||||
@ -35,7 +35,7 @@ public class ReplayPanelItemsController : ScrollPanelController
|
||||
string opponentNickname = myPlayerType==Enums.PlayerType.PlayerA ? replayRecord.playerB : replayRecord.playerA;
|
||||
|
||||
replayCell.SetMyPlayerType(myPlayerType);
|
||||
replayCell.SetWinImage(Enums.GameResult.Win.ToString() == replayRecord.gameResult);
|
||||
replayCell.SetWinImage(replayRecord.gameResult);
|
||||
|
||||
replayCell.SetOpponentPlayerNickname(opponentNickname);
|
||||
replayCell.SetRecordDate(replayRecord.gameDate);
|
||||
|
Loading…
x
Reference in New Issue
Block a user