|
@@ -14,21 +14,12 @@ namespace GFGGame
|
|
private ValueBarController _valueBarController;
|
|
private ValueBarController _valueBarController;
|
|
private Dictionary<int, LuckyBoxController> _lcukyBoxCtrl = new Dictionary<int, LuckyBoxController>();
|
|
private Dictionary<int, LuckyBoxController> _lcukyBoxCtrl = new Dictionary<int, LuckyBoxController>();
|
|
|
|
|
|
- //private GameObject _gameObject;
|
|
|
|
- //private GoWrapper _wrapper;
|
|
|
|
- //private GameObject _gameObject1;
|
|
|
|
- //private GoWrapper _wrapper1;
|
|
|
|
- //private GameObject _gameObject2;
|
|
|
|
- //private GoWrapper _wrapper2;
|
|
|
|
- //private GameObject _gameObject3;
|
|
|
|
- //private GoWrapper _wrapper3;
|
|
|
|
-
|
|
|
|
|
|
+ private GameObject _gameObject0;
|
|
|
|
+ private GameObject _gameObject1;
|
|
|
|
+ private GoWrapper _wrapper0;
|
|
|
|
+ private GoWrapper _wrapper1;
|
|
private DressUpObjUI _dressUpObjUIXiHe;
|
|
private DressUpObjUI _dressUpObjUIXiHe;
|
|
|
|
|
|
- //private GameObject _scenePrefab;
|
|
|
|
- //private GameObject _sceneObject;
|
|
|
|
- //private GoWrapper _wrapper4;
|
|
|
|
- //private DressUpObj _dressUpObj;
|
|
|
|
private DressUpObjUI _dressUpObjUIChangXi;
|
|
private DressUpObjUI _dressUpObjUIChangXi;
|
|
|
|
|
|
private bool isActiveBoxOpen = false;
|
|
private bool isActiveBoxOpen = false;
|
|
@@ -57,11 +48,8 @@ namespace GFGGame
|
|
_dressUpObjUIChangXi.Dispose();
|
|
_dressUpObjUIChangXi.Dispose();
|
|
_dressUpObjUIChangXi = null;
|
|
_dressUpObjUIChangXi = null;
|
|
}
|
|
}
|
|
-
|
|
|
|
- //SceneController.DestroyObjectFromView(_gameObject, _wrapper);
|
|
|
|
- //SceneController.DestroyObjectFromView(_gameObject1, _wrapper1);
|
|
|
|
- //SceneController.DestroyObjectFromView(_gameObject2, _wrapper2);
|
|
|
|
- //SceneController.DestroyObjectFromView(_gameObject3, _wrapper3);
|
|
|
|
|
|
+ SceneController.DestroyObjectFromView(_gameObject0, _wrapper0);
|
|
|
|
+ SceneController.DestroyObjectFromView(_gameObject1, _wrapper1);
|
|
|
|
|
|
if (_ui != null)
|
|
if (_ui != null)
|
|
{
|
|
{
|
|
@@ -222,6 +210,14 @@ namespace GFGGame
|
|
|
|
|
|
LuckyBoxDataManager.Instance.GetOwnedCount(boxId, out int count, out int totalCount);
|
|
LuckyBoxDataManager.Instance.GetOwnedCount(boxId, out int count, out int totalCount);
|
|
comBox.m_imgSpecial.visible = boxId != LuckyBoxDataManager.BOX_ID_3;
|
|
comBox.m_imgSpecial.visible = boxId != LuckyBoxDataManager.BOX_ID_3;
|
|
|
|
+ GGraph holder = comBox.m_btnBuyTen.GetChild("holder").asGraph;
|
|
|
|
+ holder.visible = boxId != LuckyBoxDataManager.BOX_ID_3;
|
|
|
|
+ comBox.m_holder.visible = boxId != LuckyBoxDataManager.BOX_ID_3;
|
|
|
|
+ string resPath0 = ResPathUtil.GetViewEffectPath("ui_LuckyBox", "Button_Glow");
|
|
|
|
+ SceneController.AddObjectToView(null, null, holder, resPath0, out _gameObject0, out _wrapper0);
|
|
|
|
+ string resPath1 = ResPathUtil.GetViewEffectPath("ui_LuckyBox", "but_text_dc");
|
|
|
|
+ SceneController.AddObjectToView(null, null, comBox.m_holder, resPath1, out _gameObject1, out _wrapper1);
|
|
|
|
+
|
|
comBox.m_txtOwned.SetVar("v1", "" + count).FlushVars();
|
|
comBox.m_txtOwned.SetVar("v1", "" + count).FlushVars();
|
|
comBox.m_txtOwned.SetVar("v2", "" + totalCount).FlushVars();
|
|
comBox.m_txtOwned.SetVar("v2", "" + totalCount).FlushVars();
|
|
int boughtCount = GameGlobal.myNumericComponent.GetAsInt(cfg.numericType);
|
|
int boughtCount = GameGlobal.myNumericComponent.GetAsInt(cfg.numericType);
|
|
@@ -267,6 +263,13 @@ namespace GFGGame
|
|
}
|
|
}
|
|
UI_ComBox1.ProxyEnd();
|
|
UI_ComBox1.ProxyEnd();
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ private void UpdateEffect()
|
|
|
|
+ {
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ }
|
|
private void CheckTime(object param = null)
|
|
private void CheckTime(object param = null)
|
|
{
|
|
{
|
|
if (LuckyBoxDataManager.Instance.currentBoxId != _activeBoxId) return;
|
|
if (LuckyBoxDataManager.Instance.currentBoxId != _activeBoxId) return;
|