private static bool ProceedLayoutAndButton(string layoutName, string buttonName, bool probeOnly = false) { GUIBase_Layout layout = MFGuiManager.Instance.GetLayout(layoutName); if (null != layout) { if (layout.IsEnabled(true) && layout.IsVisible(false)) { GUIBase_Widget widget = layout.GetWidget(buttonName); if (null != widget) { if (widget.IsEnabled(true) && widget.IsVisible(false)) { if (!probeOnly) { m_CoroutineRunning = true; if (null != Game.Instance) { Game.Instance.StartCoroutine(AutoClick(widget)); } } return(true); } } } } return(false); }
void OnSequenceEnd() { if (m_CurrentSubtitles.ForceWalkOnPlayer) { //Debug.Log("zpomaleni pohybu playera vypnuto"); GuiHUD.Instance.ShowWeaponControls(); } //pokud neni jeste background skryty, shovej ho alespon ted na konec if (m_Background && m_Background.IsVisible()) { MFGuiManager.Instance.ShowLayout(m_Background, false); } //m_CurrentContent = null; m_CurrentSubtitles = null; enabled = false; wasAudioPlaying = false; }