lzx 2 dagar sedan
förälder
incheckning
50673006c2

+ 1 - 0
Assets/Scripts/GameUI/UI/DaoYouPanel/DaoYouInfoPanel.cs

@@ -175,6 +175,7 @@ namespace Fort23.Mono
                     daoYouData.emotion = emotionId;
                     daoYouData.emotion = emotionId;
                     emotionConfig emotionConfig = ConfigComponent.Instance.Get<emotionConfig>(daoYouData.emotion);
                     emotionConfig emotionConfig = ConfigComponent.Instance.Get<emotionConfig>(daoYouData.emotion);
                     Text_message.text = LanguageManager.Instance.Text(emotionConfig.des);
                     Text_message.text = LanguageManager.Instance.Text(emotionConfig.des);
+                    AccountFileInfo.Instance.SavePlayerData();
                 }
                 }
 
 
 
 

+ 1 - 0
Assets/Scripts/GameUI/UI/DaoYouPanel/DaoYouWidget.cs

@@ -49,6 +49,7 @@ namespace Fort23.Mono
                 if (TimeHelper.ClientNow() - _daoYouData.emotionTime >= 60 * 60 * 1000)
                 if (TimeHelper.ClientNow() - _daoYouData.emotionTime >= 60 * 60 * 1000)
                 {
                 {
                     _daoYouData.emotion = Random.Range(1, 4);
                     _daoYouData.emotion = Random.Range(1, 4);
+                    _daoYouData.emotionValue = (int)(100 / (float)_daoYouData.emotion);
                     _daoYouData.emotionTime = TimeHelper.ClientNow();
                     _daoYouData.emotionTime = TimeHelper.ClientNow();
                 }
                 }