|
@@ -34,6 +34,7 @@ namespace Fort23.Mono
|
|
|
{
|
|
{
|
|
|
_daoyouModelConfig = ConfigComponent.Instance.Get<DaoyouModelConfig>(configId);
|
|
_daoyouModelConfig = ConfigComponent.Instance.Get<DaoyouModelConfig>(configId);
|
|
|
_daoYouData = AccountFileInfo.Instance.playerData.daoYouDatas.FirstOrDefault(dy => dy.id == configId);
|
|
_daoYouData = AccountFileInfo.Instance.playerData.daoYouDatas.FirstOrDefault(dy => dy.id == configId);
|
|
|
|
|
+ Icon_Daoyou.icon_name = _daoyouModelConfig.bodyIcon;
|
|
|
|
|
|
|
|
Text_Name.text = LanguageManager.Instance.Text(_daoyouModelConfig.name);
|
|
Text_Name.text = LanguageManager.Instance.Text(_daoyouModelConfig.name);
|
|
|
if (_daoYouData != null)
|
|
if (_daoYouData != null)
|
|
@@ -53,7 +54,7 @@ namespace Fort23.Mono
|
|
|
{
|
|
{
|
|
|
Slider_Emotion.fillAmount = _daoYouData.emotionValue / 100;
|
|
Slider_Emotion.fillAmount = _daoYouData.emotionValue / 100;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
if (_daoYouData == null)
|
|
if (_daoYouData == null)
|
|
|
{
|
|
{
|
|
@@ -74,7 +75,8 @@ namespace Fort23.Mono
|
|
|
|
|
|
|
|
Icon_Emotion.gameObject.SetActive(false);
|
|
Icon_Emotion.gameObject.SetActive(false);
|
|
|
|
|
|
|
|
- DaoyouLevelupConfig daoyouLevelupConfig = ConfigComponent.Instance.Get<DaoyouLevelupConfig>(_daoYouData.favorabilityLv);
|
|
|
|
|
|
|
+ DaoyouLevelupConfig daoyouLevelupConfig =
|
|
|
|
|
+ ConfigComponent.Instance.Get<DaoyouLevelupConfig>(_daoYouData.favorabilityLv);
|
|
|
Text_DaoyouLvName.text = LanguageManager.Instance.Text(daoyouLevelupConfig.name);
|
|
Text_DaoyouLvName.text = LanguageManager.Instance.Text(daoyouLevelupConfig.name);
|
|
|
if (_daoYouData.favorabilityLv >= _daoyouModelConfig.EmotionLvforQuest
|
|
if (_daoYouData.favorabilityLv >= _daoyouModelConfig.EmotionLvforQuest
|
|
|
&& EventSystemManager.Instance.BagIsEvent(_daoyouModelConfig.EventCompleteforQuest)
|
|
&& EventSystemManager.Instance.BagIsEvent(_daoyouModelConfig.EventCompleteforQuest)
|