최초 시작 시 Lv1. 상태에서 시작하기 때문에 Lv.1 조건의 앨범은 열려있어야 할 것 같습니다. 현재 Lv2가 되었을 때 Lv.1 앨범이 개방되고, Lv3이 되어야 Lv.2 앨범이 개방되고 있는데 이 부분을 현재 맞고 레벨에 맞춰서 자동으로 개방될 수 있도록 수정 바랍니다.

This commit is contained in:
Ino 2025-09-11 07:17:10 +09:00
parent 356e0918f8
commit 61b46829f9
6 changed files with 43 additions and 6 deletions

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: ffd0ea00a31fe0b41aa166338e80b855
guid: 52b603aadf2941d43b70976be4e15957
labels:
- gvh
- gvh_version-9.5.0

View File

@ -1 +1 @@
3
4

View File

@ -74,6 +74,7 @@ namespace CodeJay
if (ImageOpenStates_Right == null) ImageOpenStates_Right = new bool[DB_HuntingData.CountEntities >> 1];
for (int i = 0; i < ImageOpenStates_Left.Length; i++) ImageOpenStates_Left[i] = false;
ImageOpenStates_Left[0] = true; // 최초 앨범 오픈
for (int i = 0; i < ImageOpenStates_Right.Length; i++) ImageOpenStates_Right[i] = false;
if (this.UnlockProgress == null)

View File

@ -628,9 +628,9 @@ public partial class GamePanel : MonoBehaviour
//_lstCardSlots[48] = temp;
}
// <EFBFBD><EFBFBD><EFBFBD><EFBFBD> ó<><C3B3>
// 총통 테스트
{
// Player
// Player (유저 총통 만들기, 안되고 폭탄만 만들어짐)
{
//indices.Remove(0);
//indices.Remove(1);
@ -638,7 +638,7 @@ public partial class GamePanel : MonoBehaviour
//indices.Remove(3);
}
// Floor
// Floor (바닥패를 총통으로 만들어 다음판 or 로비로)
{
//indices.Remove(0);
//indices.Remove(1);

View File

@ -1,4 +1,5 @@
using CodeJay.Enum;
using System.Collections.Generic;
using System.Reflection.Emit;
using UnityEngine;
@ -30,11 +31,46 @@ public partial class GamePanel : MonoBehaviour
_distributeState = EDistributeState.Initialize;
}
#if UNITY_EDITOR
public void SetCardsAtIndex(List<CardSlot> slots, List<ECardType> cards, int startIndex)
{
for (int i = 0; i < cards.Count; i++)
{
int targetIndex = startIndex + i;
// 해당 카드의 현재 인덱스 찾기
int currentIndex = slots.FindIndex(slot => slot.CardType == cards[i]);
// 이미 올바른 위치면 스킵
if (currentIndex == targetIndex) continue;
if (currentIndex >= 0)
{
// 값 스왑
var temp = slots[targetIndex];
slots[targetIndex] = slots[currentIndex];
slots[currentIndex] = temp;
}
}
}
#endif
private void DistributeStateMachine()
{
switch (_distributeState)
{
case EDistributeState.Initialize:
#if UNITY_EDITOR
// 테스트 (원하는 카드 세팅)
{
// 고정시킬 카드 순서
var fixedCards = new List<ECardType> { ECardType.Jan_Ghwang, ECardType.Jan_Hongdan,
ECardType.Jan_Normal_1, ECardType.Jan_Normal_2 };
//SetCardsAtIndex(_lstCardSlots, fixedCards, 0); // 플레이어 총통
//SetCardsAtIndex(_lstCardSlots, fixedCards, 9); // AI 총통
}
#endif
if (_distributeCardIndex < _lstCardSlots.Count)
{
if (_distributeCardIndex == 0)

View File

@ -68,7 +68,7 @@ public class MainPanel : MonoBehaviour
}*/
PlayAdvice();
var data = DB_HuntingData.GetEntity(GameManager.DB.GetUnlockTargetIndex(true) << 1);
var data = DB_HuntingData.GetEntity((GameManager.DB.GetUnlockTargetIndex(true) << 1) - 2);
if (data != null) aiImage.sprite = data.DBF_HuntingImage;
GameManager.DB.CheckDayReset();