|
@@ -158,6 +158,7 @@ namespace GFGGame
|
|
EventAgent.AddEventListener(ConstMessage.NUMERIC_CHANGE, OnNumericChange);
|
|
EventAgent.AddEventListener(ConstMessage.NUMERIC_CHANGE, OnNumericChange);
|
|
EventAgent.AddEventListener(ConstMessage.STORY_LEVEL_CHANGE, CheckFunOpen);
|
|
EventAgent.AddEventListener(ConstMessage.STORY_LEVEL_CHANGE, CheckFunOpen);
|
|
EventAgent.AddEventListener(ConstMessage.RED_CHANGE, UpdateRedDot);
|
|
EventAgent.AddEventListener(ConstMessage.RED_CHANGE, UpdateRedDot);
|
|
|
|
+ EventAgent.AddEventListener(ConstMessage.CHANGE_ROLE_HEAD, UpdateHead);
|
|
}
|
|
}
|
|
protected override void OnShown()
|
|
protected override void OnShown()
|
|
{
|
|
{
|
|
@@ -173,6 +174,8 @@ namespace GFGGame
|
|
|
|
|
|
SceneController.UpdateMainScene(_sceneObject);
|
|
SceneController.UpdateMainScene(_sceneObject);
|
|
UpdateRoleLvl();
|
|
UpdateRoleLvl();
|
|
|
|
+ UpdateHead();
|
|
|
|
+
|
|
_valueBarController.OnShown();
|
|
_valueBarController.OnShown();
|
|
|
|
|
|
|
|
|
|
@@ -205,6 +208,7 @@ namespace GFGGame
|
|
EventAgent.RemoveEventListener(ConstMessage.NUMERIC_CHANGE, OnNumericChange);
|
|
EventAgent.RemoveEventListener(ConstMessage.NUMERIC_CHANGE, OnNumericChange);
|
|
EventAgent.RemoveEventListener(ConstMessage.STORY_LEVEL_CHANGE, CheckFunOpen);
|
|
EventAgent.RemoveEventListener(ConstMessage.STORY_LEVEL_CHANGE, CheckFunOpen);
|
|
EventAgent.RemoveEventListener(ConstMessage.RED_CHANGE, UpdateRedDot);
|
|
EventAgent.RemoveEventListener(ConstMessage.RED_CHANGE, UpdateRedDot);
|
|
|
|
+ EventAgent.RemoveEventListener(ConstMessage.CHANGE_ROLE_HEAD, UpdateHead);
|
|
|
|
|
|
}
|
|
}
|
|
private void AddEffect()
|
|
private void AddEffect()
|
|
@@ -540,6 +544,11 @@ namespace GFGGame
|
|
_ui.m_headBar.m_txtLvl.text = "" + GameGlobal.myNumericComponent.GetAsInt(NumericType.Lvl);
|
|
_ui.m_headBar.m_txtLvl.text = "" + GameGlobal.myNumericComponent.GetAsInt(NumericType.Lvl);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ private void UpdateHead()
|
|
|
|
+ {
|
|
|
|
+ RoleInfoManager.Instance.UpdateHead(_ui.m_headBar.m_comHead, RoleDataManager.headId, RoleDataManager.headId);
|
|
|
|
+ }
|
|
|
|
+
|
|
private void CheckFunOpen()
|
|
private void CheckFunOpen()
|
|
{
|
|
{
|
|
_ui.m_btnXiuFang.m_loaLockIcon.visible = !FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(XiuFangView).Name, false);
|
|
_ui.m_btnXiuFang.m_loaLockIcon.visible = !FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(XiuFangView).Name, false);
|