|
@@ -3,6 +3,7 @@ using FairyGUI;
|
|
|
using ET;
|
|
|
using System.Collections.Generic;
|
|
|
using System;
|
|
|
+using UnityEngine;
|
|
|
|
|
|
namespace GFGGame
|
|
|
{
|
|
@@ -31,9 +32,18 @@ namespace GFGGame
|
|
|
_comModel.m_loaBg.url = ResPathUtil.GetBgImgPath(_luckyBoxCfg.resArr[_bgIndex]);
|
|
|
if (_luckyBoxCfg.suitShowArr.Length > 0)
|
|
|
{
|
|
|
- _dressUpObjUI.ResetSceneObj(100, false, false, null, false);
|
|
|
+ int scale = 100;
|
|
|
+ int direction = 1;
|
|
|
+ if (_luckyBoxCfg.scaleArr.Length > 0)
|
|
|
+ {
|
|
|
+ scale = Math.Abs(_luckyBoxCfg.scaleArr[_modelIndex]);
|
|
|
+ direction = _luckyBoxCfg.scaleArr[_modelIndex] >= 0 ? 1 : -1;
|
|
|
+ }
|
|
|
+ _dressUpObjUI.ResetSceneObj(scale, false, false, null, false);
|
|
|
_dressUpObjUI.dressUpObj.PutOnSuitCfg(_luckyBoxCfg.suitShowArr[_modelIndex][0], true, new int[] { ConstDressUpItemType.BEI_JING }, false, false);
|
|
|
_dressUpObjUI.UpdateWrapper(_comModel.m_holder);
|
|
|
+ _dressUpObjUI.sceneObject.transform.localPosition = new Vector3(_luckyBoxCfg.suitShowArr[_modelIndex][1], _luckyBoxCfg.suitShowArr[_modelIndex][2], 0);
|
|
|
+ _dressUpObjUI.sceneObject.transform.localScale = new Vector3(direction * scale, scale, scale);
|
|
|
}
|
|
|
if (_luckyBoxCfg.resArr.Length > 1 || _luckyBoxCfg.suitShowArr.Length > 1)
|
|
|
{
|
|
@@ -57,9 +67,18 @@ namespace GFGGame
|
|
|
}
|
|
|
if (_luckyBoxCfg.suitShowArr.Length > 0)
|
|
|
{
|
|
|
- _dressUpObjUI.ResetSceneObj(100, false, false, null, false);
|
|
|
+ int scale = 100;
|
|
|
+ int direction = 1;
|
|
|
+ if (_luckyBoxCfg.scaleArr.Length > 0)
|
|
|
+ {
|
|
|
+ scale = Math.Abs(_luckyBoxCfg.scaleArr[_modelIndex]);
|
|
|
+ direction = _luckyBoxCfg.scaleArr[_modelIndex] >= 0 ? 1 : -1;
|
|
|
+ }
|
|
|
+ _dressUpObjUI.ResetSceneObj(scale, false, false, null, false);
|
|
|
_dressUpObjUI.dressUpObj.PutOnSuitCfg(_luckyBoxCfg.suitShowArr[_modelIndex][0], true, new int[] { ConstDressUpItemType.BEI_JING }, false, false);
|
|
|
_dressUpObjUI.UpdateWrapper(_comModel.m_holder);
|
|
|
+ _dressUpObjUI.sceneObject.transform.localPosition = new Vector3(_luckyBoxCfg.suitShowArr[_modelIndex][1], _luckyBoxCfg.suitShowArr[_modelIndex][2], 0);
|
|
|
+ _dressUpObjUI.sceneObject.transform.localScale = new Vector3(direction * scale, scale, scale);
|
|
|
}
|
|
|
}
|
|
|
}
|