private void OpenGameLevelFail() { GameObject go = UIViewUtil.Instance.OpenWindow(UIViewType.GameLevelFail); m_FailView = go.GetComponent <UIGameLevelFailView>(); DataTransfer data = new DataTransfer(); data.SetData(ConstDefine.MusicStatus, Global.Instance.IsPlaySound); m_FailView.SetUI(data); }
private void OpenGameLevelFailWindow() { m_FailWindow = UIViewUtil.Instance.OpenWindow(UIViewType.Fail).GetComponent <UIGameLevelFailView>(); m_FailWindow.SetUI(GameLevelSceneCtrl.Instance.CurFloor); }