|
@@ -12,6 +12,8 @@ namespace GFGGame
|
|
private GameObject _scenePrefab;
|
|
private GameObject _scenePrefab;
|
|
private GameObject _sceneObject;
|
|
private GameObject _sceneObject;
|
|
private GoWrapper _wrapper;
|
|
private GoWrapper _wrapper;
|
|
|
|
+ private GameObject _gameObject1;
|
|
|
|
+ private GoWrapper _wrapper1;
|
|
|
|
|
|
private int guideId = 0;//0:没有引导 1:首次获得套装2:首次获得套装部件
|
|
private int guideId = 0;//0:没有引导 1:首次获得套装2:首次获得套装部件
|
|
public override void Dispose()
|
|
public override void Dispose()
|
|
@@ -21,6 +23,8 @@ namespace GFGGame
|
|
GameObject.Destroy(_scenePrefab);
|
|
GameObject.Destroy(_scenePrefab);
|
|
_scenePrefab = null;
|
|
_scenePrefab = null;
|
|
}
|
|
}
|
|
|
|
+ SceneController.DestroyObjectFromView(_gameObject1);
|
|
|
|
+
|
|
base.Dispose();
|
|
base.Dispose();
|
|
}
|
|
}
|
|
|
|
|
|
@@ -34,6 +38,9 @@ namespace GFGGame
|
|
_scenePrefab = GFGAsset.Load<GameObject>(ResPathUtil.GetPrefabPath("SceneDressUp"));
|
|
_scenePrefab = GFGAsset.Load<GameObject>(ResPathUtil.GetPrefabPath("SceneDressUp"));
|
|
_ui.m_bg.onClick.Add(OnClickBg);
|
|
_ui.m_bg.onClick.Add(OnClickBg);
|
|
|
|
|
|
|
|
+ string resPath = ResPathUtil.GetViewEffectPath("ui_ck", "ui_ck_tz");
|
|
|
|
+ SceneController.AddObjectToView(null, null, _ui.m_holderEffect, resPath, out _gameObject1, out _wrapper1);
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
protected override void OnShown()
|
|
protected override void OnShown()
|
|
@@ -104,7 +111,7 @@ namespace GFGGame
|
|
|
|
|
|
private void UpdateView(int itemId)
|
|
private void UpdateView(int itemId)
|
|
{
|
|
{
|
|
-
|
|
|
|
|
|
+ _ui.m_holderEffect.visible = true;
|
|
int count = 0;
|
|
int count = 0;
|
|
int totalCount = 1;
|
|
int totalCount = 1;
|
|
int suitId = 0;
|
|
int suitId = 0;
|