|
@@ -207,15 +207,15 @@ namespace GFGGame
|
|
item.m_holder.visible = isLock && canActive;
|
|
item.m_holder.visible = isLock && canActive;
|
|
if (isLock && canActive)
|
|
if (isLock && canActive)
|
|
{
|
|
{
|
|
- GameObject gameObject;
|
|
|
|
- GoWrapper wrapper;
|
|
|
|
|
|
+ GameObject gameObject = null;
|
|
|
|
+ GoWrapper wrapper = null;
|
|
if (_gameObjects.Count > index)
|
|
if (_gameObjects.Count > index)
|
|
{
|
|
{
|
|
gameObject = _gameObjects[index];
|
|
gameObject = _gameObjects[index];
|
|
wrapper = _wrappers[index];
|
|
wrapper = _wrappers[index];
|
|
}
|
|
}
|
|
string resPath = ResPathUtil.GetViewEffectPath("ui_league", "tea_nolearn");
|
|
string resPath = ResPathUtil.GetViewEffectPath("ui_league", "tea_nolearn");
|
|
- SceneController.AddObjectToView(null, null, item.m_holder, resPath, out gameObject, out wrapper);
|
|
|
|
|
|
+ SceneController.AddObjectToView(gameObject, wrapper, item.m_holder, resPath, out gameObject, out wrapper);
|
|
|
|
|
|
if (_gameObjects.Count <= index)
|
|
if (_gameObjects.Count <= index)
|
|
{
|
|
{
|