|
|
@@ -139,39 +139,40 @@ namespace GFGGame
|
|
|
}
|
|
|
_dressUpObjUI = new DressUpObjUI("SceneDressUp");
|
|
|
|
|
|
- _dressUpObjUI.ResetSceneObj(100, false, true, null, false);
|
|
|
- _dressUpObjUI.dressUpObj.PutOnSuitCfg(_suitId, isPic, new int[] { ConstDressUpItemType.BEI_JING }, true, false);
|
|
|
- Timers.inst.Add(0.2f, 1, OnTimerUpDate);
|
|
|
- UpdateSuitBoxStatus();
|
|
|
+ //_dressUpObjUI.ResetSceneObj(100, false, true, null, false);
|
|
|
+ //_dressUpObjUI.dressUpObj.PutOnSuitCfg(_suitId, isPic, new int[] { ConstDressUpItemType.BEI_JING }, true, false);
|
|
|
+ //Timers.inst.Add(0.2f, 1, OnTimerUpDate);
|
|
|
+ //UpdateSuitBoxStatus();
|
|
|
|
|
|
// 使用异步方式重置场景对象
|
|
|
- //_dressUpObjUI.ResetSceneObjAsync(100, false, true, null, false, (sceneObj) =>
|
|
|
- //{
|
|
|
- // if (sceneObj != null)
|
|
|
- // {
|
|
|
- // _dressUpObjUI.dressUpObj.SetOnSuitPutOnCompleteCallback(() =>
|
|
|
- // {
|
|
|
- // //_dressUpObjUI.UpdateWrapper(_ui.m_holder);
|
|
|
- // UpdateSuitBoxStatus();
|
|
|
- // });
|
|
|
-
|
|
|
- // // 场景对象加载完成后穿上套装
|
|
|
- // _dressUpObjUI.dressUpObj.PutOnSuitCfg(
|
|
|
- // _suitId,
|
|
|
- // isPic,
|
|
|
- // new int[] { ConstDressUpItemType.BEI_JING },
|
|
|
- // true,
|
|
|
- // false
|
|
|
- // );
|
|
|
- // // _dressUpObjUI.UpdateWrapper(_ui.m_holder);
|
|
|
- // // UpdateSuitBoxStatus();
|
|
|
-
|
|
|
- // }
|
|
|
- // else
|
|
|
- // {
|
|
|
- // Debug.LogError("Failed to load scene object for suit view");
|
|
|
- // }
|
|
|
- //});
|
|
|
+ _dressUpObjUI.ResetSceneObjAsync(100, false, true, null, false, (sceneObj) =>
|
|
|
+ {
|
|
|
+ if (sceneObj != null)
|
|
|
+ {
|
|
|
+ //_dressUpObjUI.dressUpObj.SetOnSuitPutOnCompleteCallback(() =>
|
|
|
+ //{
|
|
|
+ //_dressUpObjUI.UpdateWrapper(_ui.m_holder);
|
|
|
+ //UpdateSuitBoxStatus();
|
|
|
+ //});
|
|
|
+
|
|
|
+ // 场景对象加载完成后穿上套装
|
|
|
+ _dressUpObjUI.dressUpObj.PutOnSuitCfg(
|
|
|
+ _suitId,
|
|
|
+ isPic,
|
|
|
+ new int[] { ConstDressUpItemType.BEI_JING },
|
|
|
+ true,
|
|
|
+ false
|
|
|
+ );
|
|
|
+ // _dressUpObjUI.UpdateWrapper(_ui.m_holder);
|
|
|
+ Timers.inst.Add(0.3f, 1, OnTimerUpDate);
|
|
|
+ UpdateSuitBoxStatus();
|
|
|
+
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ Debug.LogError("Failed to load scene object for suit view");
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
private void UpdateArrows()
|