0.3.3.14 업데이트
This commit is contained in:
parent
3e78113bd5
commit
517e0324e8
@ -33,7 +33,7 @@ namespace BlueWater.Uis
|
|||||||
[field: SerializeField, CLabel("업그레이드_스크립트")]
|
[field: SerializeField, CLabel("업그레이드_스크립트")]
|
||||||
private GameObject _upgradePopup;
|
private GameObject _upgradePopup;
|
||||||
|
|
||||||
private bool _selectedPassive = false;
|
private bool _isSelectedPassive;
|
||||||
|
|
||||||
private void Awake()
|
private void Awake()
|
||||||
{
|
{
|
||||||
@ -116,11 +116,9 @@ namespace BlueWater.Uis
|
|||||||
|
|
||||||
//----카드 값 지정 및 초기화----
|
//----카드 값 지정 및 초기화----
|
||||||
|
|
||||||
bool passiveCheck(CardData _card)
|
bool PassiveCheck(CardData card)
|
||||||
{
|
{
|
||||||
if(_card.Type == CardType.Passive) Debug.Log(_card.ScriptText+" : "+_selectedPassive);
|
return _isSelectedPassive && card.Type == CardType.Passive;
|
||||||
|
|
||||||
return _selectedPassive && _card.Type == CardType.Passive;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CardData card;
|
CardData card;
|
||||||
@ -137,7 +135,7 @@ namespace BlueWater.Uis
|
|||||||
}
|
}
|
||||||
|
|
||||||
} while (card == null || _tycoonManager.CardDataSo.CardMaxCheck(card) //Max 검사
|
} while (card == null || _tycoonManager.CardDataSo.CardMaxCheck(card) //Max 검사
|
||||||
|| passiveCheck(card));//패시브 검사
|
|| PassiveCheck(card));//패시브 검사
|
||||||
_tycoonCard01Componet.SetCard(card01Key);
|
_tycoonCard01Componet.SetCard(card01Key);
|
||||||
|
|
||||||
|
|
||||||
@ -154,7 +152,7 @@ namespace BlueWater.Uis
|
|||||||
|
|
||||||
} while (card == null || _tycoonManager.CardDataSo.CardMaxCheck(card) //Max 검사
|
} while (card == null || _tycoonManager.CardDataSo.CardMaxCheck(card) //Max 검사
|
||||||
|| card02Key.Equals(card01Key) //중복검사
|
|| card02Key.Equals(card01Key) //중복검사
|
||||||
|| passiveCheck(card));//패시브 검사
|
|| PassiveCheck(card));//패시브 검사
|
||||||
_tycoonCard02Componet.SetCard(card02Key);
|
_tycoonCard02Componet.SetCard(card02Key);
|
||||||
|
|
||||||
|
|
||||||
@ -171,7 +169,7 @@ namespace BlueWater.Uis
|
|||||||
|
|
||||||
} while (card == null || _tycoonManager.CardDataSo.CardMaxCheck(card) //Max 검사
|
} while (card == null || _tycoonManager.CardDataSo.CardMaxCheck(card) //Max 검사
|
||||||
|| card03Key.Equals(card01Key) || card03Key.Equals(card02Key) //중복검사
|
|| card03Key.Equals(card01Key) || card03Key.Equals(card02Key) //중복검사
|
||||||
|| passiveCheck(card)); //패시브 검사
|
|| PassiveCheck(card)); //패시브 검사
|
||||||
_tycoonCard03Componet.SetCard(card03Key);
|
_tycoonCard03Componet.SetCard(card03Key);
|
||||||
|
|
||||||
//-------------
|
//-------------
|
||||||
@ -300,7 +298,7 @@ namespace BlueWater.Uis
|
|||||||
default: Debug.Log("Not Found Card : IDX" + currTycoonCard.CardDataForIdx.Idx); return;
|
default: Debug.Log("Not Found Card : IDX" + currTycoonCard.CardDataForIdx.Idx); return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (currTycoonCard.CardDataForIdx.Type == CardType.Passive) _selectedPassive = true;
|
if (currTycoonCard.CardDataForIdx.Type == CardType.Passive) _isSelectedPassive = true;
|
||||||
|
|
||||||
TycoonManager.Instance.CardDataSo.AddToSelectedCard(currTycoonCard.CardDataForIdx);
|
TycoonManager.Instance.CardDataSo.AddToSelectedCard(currTycoonCard.CardDataForIdx);
|
||||||
|
|
||||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user