|
@@ -45,7 +45,6 @@ namespace GFGGame
|
|
|
private List<ItemData> _materiarsOfSelectedItem;
|
|
|
|
|
|
private UI_MateriasListItem listTypeItem_CloSynthetic;
|
|
|
- private bool _clearDressUpList;
|
|
|
|
|
|
|
|
|
public override void Dispose()
|
|
@@ -125,11 +124,10 @@ namespace GFGGame
|
|
|
protected override void OnHide()
|
|
|
{
|
|
|
base.OnHide();
|
|
|
- _clearDressUpList = true;
|
|
|
_valueBarController.OnHide();
|
|
|
_ui.m_listMaterias.selectedIndex = 0;
|
|
|
Timers.inst.Remove(CheckGuide);
|
|
|
-
|
|
|
+ _dressUpObjUI.dressUpObj.TakeOffAll();
|
|
|
}
|
|
|
protected override void RemoveEventListener()
|
|
|
{
|
|
@@ -196,12 +194,6 @@ namespace GFGGame
|
|
|
private EaseType ease = EaseType.CubicOut;
|
|
|
private void UpdateRole(bool tween)
|
|
|
{
|
|
|
- if (_clearDressUpList)
|
|
|
- {
|
|
|
- _dressUpObjUI.dressUpObj.TakeOffAll();
|
|
|
- _clearDressUpList = false;
|
|
|
- }
|
|
|
-
|
|
|
_dressUpObjUI.ResetSceneObj(45, true, true, null, false);
|
|
|
_dressUpObjUI.dressUpObj.AddOrRemove(_selectedItemId, true);
|
|
|
_imgSelected.visible = _dressUpObjUI.dressUpObj.CheckDressUpItemIsOn(_selectedItemId);
|
|
@@ -211,6 +203,7 @@ namespace GFGGame
|
|
|
if (!tween)
|
|
|
{
|
|
|
duration = 0;
|
|
|
+ _ui.m_hide.Play();
|
|
|
}
|
|
|
var dy = _ui.m_compHolder.target.height - 642;
|
|
|
if (Array.IndexOf(HEAD_Y_ARR, type) >= 0)
|
|
@@ -243,6 +236,22 @@ namespace GFGGame
|
|
|
_ui.m_compHolder.m_compMover.target.TweenMoveY(BODY_Y + dy, duration).SetEase(ease);
|
|
|
_ui.m_compHolder.m_compMover.target.TweenScale(new Vector2(BODY_SCALE, BODY_SCALE), duration).SetEase(ease);
|
|
|
}
|
|
|
+
|
|
|
+ if (!tween)
|
|
|
+ {
|
|
|
+ Timers.inst.StartCoroutine(DelayShow());
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 延迟一帧 防止闪一下
|
|
|
+ /// </summary>
|
|
|
+ /// <returns></returns>
|
|
|
+ private IEnumerator DelayShow()
|
|
|
+ {
|
|
|
+ yield return new WaitForEndOfFrame();
|
|
|
+ _ui.m_show.Play();
|
|
|
}
|
|
|
|
|
|
private void UpdateClothingList(bool tween)
|