|
@@ -76,7 +76,7 @@ namespace GFGGame
|
|
/// <param name="roleObj"></param>
|
|
/// <param name="roleObj"></param>
|
|
/// <param name="showBg"></param>
|
|
/// <param name="showBg"></param>
|
|
/// <param name="resetData">是否重置装备数据</param>
|
|
/// <param name="resetData">是否重置装备数据</param>
|
|
- public void setSceneObj(GameObject sceneObj, bool needSetMask = false, bool showSceneType = true, GameObject roleObj = null, bool showBg = true, bool resetData = true)
|
|
|
|
|
|
+ public void setSceneObj(GameObject sceneObj, bool needSetMask = false, bool showSceneType = true, GameObject roleObj = null, bool showBg = true)
|
|
{
|
|
{
|
|
if (_sceneObj != null)
|
|
if (_sceneObj != null)
|
|
{
|
|
{
|
|
@@ -87,7 +87,7 @@ namespace GFGGame
|
|
_showSceneType = showSceneType;
|
|
_showSceneType = showSceneType;
|
|
_showBg = showBg;
|
|
_showBg = showBg;
|
|
_roleObj = roleObj;
|
|
_roleObj = roleObj;
|
|
- if(resetData)
|
|
|
|
|
|
+ if(_dressUpData.suitId <= 0 && _dressUpData.actionId <= 0 && _dressUpData.itemList.Count <= 0 && _dressUpData.bgId <= 0)
|
|
{
|
|
{
|
|
PutOnDefaultDressUpData();
|
|
PutOnDefaultDressUpData();
|
|
}
|
|
}
|