|
@@ -12,7 +12,7 @@ namespace GFGGame
|
|
|
private UI_ComModel _comModel;
|
|
|
private DressUpObjUI _dressUpObjUI;
|
|
|
private LuckyBoxCfg _luckyBoxCfg;
|
|
|
- private const int _turnTime = 3;
|
|
|
+ private const int _turnTime = 8;
|
|
|
private int _curTime = _turnTime;
|
|
|
private int _bgIndex = 0;
|
|
|
private int _modelIndex = 0;
|
|
@@ -45,10 +45,11 @@ namespace GFGGame
|
|
|
private void UpdateTime(object param)
|
|
|
{
|
|
|
_curTime = _curTime - 1 == 0 ? _turnTime : _curTime - 1;
|
|
|
- _bgIndex = _bgIndex + 1 == _luckyBoxCfg.resArr.Length ? 0 : _bgIndex + 1;
|
|
|
- _modelIndex = _modelIndex + 1 == _luckyBoxCfg.suitShowArr.Length ? 0 : _modelIndex + 1;
|
|
|
+
|
|
|
if (_curTime == _turnTime)
|
|
|
{
|
|
|
+ _bgIndex = _bgIndex + 1 == _luckyBoxCfg.resArr.Length ? 0 : _bgIndex + 1;
|
|
|
+ _modelIndex = _modelIndex + 1 == _luckyBoxCfg.suitShowArr.Length ? 0 : _modelIndex + 1;
|
|
|
if (_luckyBoxCfg.resArr.Length > 1)
|
|
|
{
|
|
|
_comModel.m_loaBg.url = ResPathUtil.GetBgImgPath(_luckyBoxCfg.resArr[_bgIndex]);
|