using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System;
using YLBattle;
///
/// 功能建筑场景入口
///
public class Entrance_FunctionScene : MonoBehaviour
{
private Transform zhaoHuanScene = null;
///
/// 开始
///
private void Start()
{
GameObject ScenesObj = GameObject.Find("ForeverUI/Scenes");
if (ScenesObj)
{
zhaoHuanScene = ScenesObj.transform.Find("ZhaoHuanScenes");
zhaoHuanScene.gameObject.SetActive(true);
}
UI_LoadingWindow.Instance().Hide();
if (LevelManager.Instance().mWindowName != "")
{
PanelHelper.Instance.ShowPanel(LevelManager.Instance().mWindowName, null, LevelManager.Instance().mParameter);
}
else
{
PanelHelper.Instance.ShowPanel("UI_BuildDialogWindow", panel =>
{
}, LevelManager.Instance().mParameter);
}
GameDateManager.Instance.lastBattleType = BattleDefine.EBattleSceneType.EBattleType_YanJiuSuo;
}
private void OnDestroy()
{
if (zhaoHuanScene)
{
zhaoHuanScene.gameObject.SetActive(false);
}
}
}