가이드 퀘스트 작업 중.. 3
This commit is contained in:
parent
469b937b10
commit
dd8048bac1
|
|
@ -1096,6 +1096,7 @@ public partial class ServerData
|
|||
Mission[key1][key2][1].RandomizeCryptoKey();
|
||||
}
|
||||
}
|
||||
if (NewGameUI.isIns) NewGameUI.Ins.m_GuideQuestUI.Add_GuideQuest(purpose, _v);
|
||||
}
|
||||
public void Add_MissionCompletCount(int group)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -46,9 +46,7 @@ public class GuideQuestUI : MonoBehaviour
|
|||
labels[0].text = DSUtil.GetThousandCommaText(Tdata.n_RewardCount);
|
||||
labels[1].text = Tdata.Get_Desc();
|
||||
labels[2].text = $"Main - {Tdata.n_MissionIndex}";
|
||||
labels[3].text = $"{sdata.Get_Common(eCommon.GuideCount)}/{Tdata.l_MissionConditionCount}";
|
||||
|
||||
gos[0].SetActive(sdata.Get_Common(eCommon.GuideCount) >= Tdata.l_MissionConditionCount);
|
||||
Set_Count();
|
||||
|
||||
// // 선행됐는 지 체크
|
||||
// switch (Tdata.e_Purpose)
|
||||
|
|
@ -107,7 +105,15 @@ public class GuideQuestUI : MonoBehaviour
|
|||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void Set_Count()
|
||||
{
|
||||
var sdata = ServerInfo.Ins.m_ServerData;
|
||||
labels[3].text = $"{sdata.Get_Common(eCommon.GuideCount)}/{Tdata.l_MissionConditionCount}";
|
||||
gos[0].SetActive(sdata.Get_Common(eCommon.GuideCount) >= Tdata.l_MissionConditionCount);
|
||||
}
|
||||
|
||||
void Set_Complete()
|
||||
{
|
||||
gameObject.SetActive(false);
|
||||
|
|
@ -123,16 +129,17 @@ public class GuideQuestUI : MonoBehaviour
|
|||
//});
|
||||
}
|
||||
|
||||
public void Add_GuideQuest(ePurpose _purpose)
|
||||
public void Add_GuideQuest(ePurpose _purpose, int _v)
|
||||
{
|
||||
if (Tdata != null && Tdata.e_MissionConditionType == _purpose)
|
||||
if (!DSUtil.CheckNull(Tdata) && Tdata.e_MissionConditionType == _purpose)
|
||||
{
|
||||
ServerInfo.Ins.m_ServerData.Add_Common(eCommon.GuideCount);
|
||||
gos[0].SetActive(true);
|
||||
ToastUI.Ins.Set(161);
|
||||
var sdata = ServerInfo.Ins.m_ServerData;
|
||||
sdata.Add_Common(eCommon.GuideCount, _v);
|
||||
Set_Count();
|
||||
if (gos[0].activeSelf) ToastUI.Ins.Set(161);
|
||||
List_CurArrow.ForEach(f => f.SetActive(false));
|
||||
List_CurArrow.Clear();
|
||||
GuideQuestArrow.Ins.AllArrowOff();
|
||||
//GuideQuestArrow.Ins.AllArrowOff();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue